"setSeriesAsLine"

Used in the charttypes Bars, StackedBars and Bubbles to show the given series as a polyline, instead of bubbles or bars.

Synopsis

void shape.setSeriesAsLine(int series, bool asLine);

Parameters

Parameter Description
series series
asLine

TRUE = shown as line

FALSE = not shown as line

Description

Used in the charttypes Bars, StackedBars and Bubbles to show the given series as a polyline, instead of bubbles or bars. When showing a polygon, the defined markerType for this series is shown at each vertex.

Example

In this example the series "Green" is shown as a dashed line. Each vertex is marked by the marker "star".

main()
{
   dyn_float one;
   one[1] = 9;
   one[2] = 11;
   one[3] = 20;
   one[4] = 2;
   this.addSeries(one);
   this.setSeriesFillColor(0, "{180,255,170}");
   dyn_float two;
   two[1] = 1;
   two[2] = 14;
   two[3] = 15;
   this.addSeries(two);
   this.setSeriesFillColor(1, "{52,225,255}");
   this.setSeriesName(1, "Blue");
   this.setSeriesName(0, "Green");
   this.setSeriesLineType(0, "[dashed,oneColor,JoinMiter,CapButt,2]");
   this.setSeriesAsLine(0, TRUE);
   this.setSeriesMarkerType(0, "Star");
}
Figure 1. Series "Green" is shown as a dashed line with the marker "star"

Assignment

Chart.ewo