4.2.2 Line3D Series

Line3D chart uses ChartDataModel as its data model. Line3D chart extracts (x, y, z) value sets from the data model, maps and plots them. KEYS specify position on X-axis, VALUES - on Y-axis and EXTENT - on Z-axis. Points are then connected with line segments. Optionally, the line can be projected to one of the coordinate planes and the projection area can be filled. Also, line width must be set. This can be achieved using setLineWidth() method for a particular strategy.

SteppedLine3D Strategy

This series plots points and joins them with perpendicular lines.

Setting SteppedLine3D series:

 
series.setStrategy(Line3DStrategies.STEPPED_LINE_STRATEGY);

3D Stepped Line Demonstration

Figure 4.2.2.1 3D Stepped Line Demonstration

View Source

DirectLine3D Strategy

This Series plots points and joins them with straight lines.

Setting DirectLine3D series:

 
series.setStrategy(Line3DStrategies.DIRECT_LINE_STRATEGY);

3D Direct Line Demonstration

Figure 4.2.2.2 3D Direct Line Demonstration

View Source

Spline3D Strategy

Spline3D Series plots and joins data points with curved lines.

Setting Spline3D series:

 
series.setStrategy(Line3DStrategies.SPLINE_STRATEGY);

3D Spline Demonstration

Figure 4.2.2.3 3D Spline Demonstration

View Source

Scatter 3D Strategy

This Series represents each data model value as a point in chart.

Setting Scatter3D series:

 
series.setStrategy(Line3DStrategies.SCATTER_STRATEGY);

3D Scatter Demonstration

Figure 4.2.2.4 3D Scatter Demonstration

View Source