HanSolo / charts

A JavaFX library that contains different kind of charts
Apache License 2.0
668 stars 82 forks source link

Domain and Range markers #99

Open permiakover opened 2 years ago

permiakover commented 2 years ago

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

HanSolo commented 2 years ago

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.

permiakover commented 2 years ago

изображение

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

HanSolo commented 2 years ago

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

Oleksiy1984 commented 1 year ago

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.

HanSolo commented 1 year ago

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

Oleksiy1984 commented 1 year ago

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