eclipse / swtchart

Eclipse Public License 2.0
44 stars 41 forks source link

Support for dynamic axis position marker #278

Closed eselmeister closed 2 years ago

eselmeister commented 2 years ago

Especially when selecting data, it would be great to highlight the currently selected position at the X/Y axis.

eselmeister commented 2 years ago

The position markers are disabled by default. One can activate the position marker either directly

axisSettings.setDrawPositionMarker(true);

or via the axis settings:

IChartSettings chartSettings = getChartSettings();
ISecondaryAxisSettings axisSettings = getSecondaryAxisSettingsX(..., chartSettings);
axisSettings.setDrawPositionMarker(true);

Bildschirmfoto von 2021-11-29 08-24-28

A remaining issue is, that the scale on the Y axis has a slight offset. This needs further investigations.

eselmeister commented 2 years ago

Bildschirmfoto von 2021-11-29 14-07-38