Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtchart-dev] StepChart as a new Chart type

Hi,
I looked at the issue :https://github.com/eclipse/swtchart/issues/82,
When adding a new Chart type do we add a new Series like IStepSeries
or just add a new SeriesType like SeriesType.STEP in the SeriesType enum

e.g.-
ILineSeries lineSeries = (ILineSeries)chart.getSeriesSet().createSeries(SeriesType.STEP, "step series");
further we proceed as

if(type==SeriesType.STEP)
{
series=new LineSeries(chart,"Id");

series.enableStep(true);
}

Back to the top