Why are classes repeated in the HyJavaCharts API?

Why are classes repeated in the HyJavaCharts API?

Our primary goal is for the Java API to exactly match the Highcharts JavaScript API.
To achieve this we made the decision to map a Java class to each Highcharts parent option. (ie. parent to other options).

For example the DataLabels option appears under each plotOptions type and also each series type.
To map this exactly we created a DataLabels class for each DataLabels option.

When using the library, this is straight forward as you would normally reference an object from its parent class.

For example:

chartOptions.getPlotOptions().getArea().getDataLabels().setAllowOverlap(false);

You would not normally need to code:

import com.hyjavacharts.model.highcharts.plotoptions.area.DataLabels;

DataLabels d = new DataLabels();
d.setAllowOverlap(false);
chartOptions.getPlotOptions().getArea().setDataLabels(d);

The Java API’s fully support all chart types and chart options in Highcharts v5.x, v6.x, v7.x, v8.x, v9.x;  Highcharts Stock v8.x, v9.x and ApexCharts v3.x.


Current versions supported are:

HyJavaCharts

HyJavaStock

HyJavaApex

Start the HyJavaCharts demo Java web application


Start the HyJavaStock demo Java web application


Start the HyJavaApex demo Java web application


Start the HyJavaImages demo Java web application