Why does my pie and column chart display line charts?

Why does my pie and column chart display line charts?

I have configured a chart with both column and pie chart types using the SeriesPie and SeriesColumn classes as below, why does the chart display both types as line charts? After all I have specified SeriesPie and SeriesColumn.

SeriesPie seriesPie = new SeriesPie();
...options...
chartOptions.series().add(seriesPie);

SeriesColumn seriesColumn = new SeriesColumn ();
...options...
chartOptions.series().add(seriesColumn );

Even though you have used the SeriesPie and SeriesColumn classes you must still set the chart types as shown below.

SeriesPie seriesPie = new SeriesPie();
seriesPie.type(SeriesType.PIE);
...options...
chartOptions.series().add(seriesPie);

SeriesColumn seriesColumn = new SeriesColumn ();
seriesColumn.type(SeriesType.COLUMN);
...options...
chartOptions.series().add(seriesColumn );

Otherwise they will default to Line. This is true for all chart types.
For the usual case of a chart with only 1 type you would specify the type using the chart.type option.

chartOptions.chart().type(ChartType.COLUMN);

HyJavaCharts

The HyJavaCharts Java API is up to date with the latest version of Highcharts and fully supports all chart types and chart options in Highcharts v5.x and v6.x. Current versions supported are: