charts icon indicating copy to clipboard operation
charts copied to clipboard

Domain and Range markers

Open permiakover opened this issue 2 years ago • 6 comments

Hello, what is a rational way to add markers to the line chart with text label?

permiakover avatar Oct 25 '22 12:10 permiakover

Do you mean a marker at a random point of the line? There is nothing available yet. Can you add a code snippet and a screenshot with some example to this issue? With that I could maybe implement something.

HanSolo avatar Oct 25 '22 13:10 HanSolo

изображение

here is a example of domain markers over AreaChart

изображение

here is a example of domain markers over 'combined HeatMap like chart'

From my point of view, it's a line(width, color, stroke) that has X or Y value related to domain or range axis, with or without label. If it possible to get or sync chart values and canvas values - it could be implemented as overlay pane

permiakover avatar Oct 25 '22 13:10 permiakover

I've finally found some time to add a prototype for markers in the jdk17 branch. You will find a demo in the ChartTest class in the test package

HanSolo avatar Nov 15 '22 15:11 HanSolo

Regarding adding MarkerBuilder. After upgrading from 17.1.25 to the latest 17.1.27, the crosshair, and tooltip is no longer working. Tested in the ChartTest class in the test package.

Oleksiy1984 avatar Mar 17 '23 08:03 Oleksiy1984

Thx for the heads up, will take a look at it 👍🏻

HanSolo avatar Mar 17 '23 08:03 HanSolo

Thanks for setMouseTransparent(true). Is it possible to alter MarkerBuilder to accept AxisType.TIME value?

Oleksiy1984 avatar Apr 11 '23 18:04 Oleksiy1984