Vaadin Chart 2.0, Why SPLINE Has Dots?

Hi,

Is the chart in the attachment SPLINE?

This is from the sourece,
getConfiguration().getChart().setType(ChartType.SPLINE);

I don’t know DOTs is shwon on SPLINE.

Thanks.
17754.png

Hi,

Spline charts have markers by default. If you want to disable them you can do it with the following code:

plotOptions.setMarker(new Marker(false));

Hope this helps!

Hi,
Thank you for your help.

Acoording to your advice, I got a good result, not DOTs, when the chart type is LINE.

getConfiguration().getChart().setType(ChartType.LINE);
PlotOptionsLine options = new PlotOptionsLine();
options.setMarker(new Marker(false));
getConfiguration().setPlotOptions(options);

When I changed the type to SPLINE, DOTs were there, like an attached picture.
getConfiguration().getChart().setType(ChartType.SPLINE);

Nothing had changed.

Thanks.
17909.png

What version of charts are you using?

Could you try with the following code?

[code]
Chart chart = new Chart();
Configuration configuration = chart.getConfiguration();
configuration.getChart().setType(ChartType.SPLINE);

    PlotOptionsSpline plotOptions = new PlotOptionsSpline();
    configuration.setPlotOptions(plotOptions);
    plotOptions.setMarker(new Marker(false));

    DataSeries ls = new DataSeries();
    ls.setData(7.0, 26.9, -9.5, 14.5, 18.2);
    configuration.addSeries(ls);

[/code]The result should be like the attached chart. A Spline without markers.
17912.png

Hi, thank you for your reply.

What version of charts are you using?

2.0

According to your advice, it worked!!! I didn’t use PlotOptionsSpline, that was the reason.

I appreciate your help, thank you!