gillius / jfxutils

JavaFX Utilities - Zoom and Pan Charts and Pane Scaling
Apache License 2.0
68 stars 22 forks source link

Adding a label column next to chart #20

Open Jeredriq opened 5 years ago

Jeredriq commented 5 years ago

Hi,

I'm trying to get a column on the left side which changes accordingly to chart's zoom etc. I know there's already a grey background and white background changing with data but is there a way to get the coordinates so I can implement labels which will resize with them?

Currently my program works like lets say: ---- are the grey background part where chart does automatically

A,1
A,2
A,3
B,1-------------------
B,2------------------- 
B,3-------------------
C,1
C,2
C,3
C,4
C,5

but I want to show them as:

      1 
A     2
___   3
      1-------------------
B     2-------------------
___   3-------------------
      1
      2
C     3
      4
___   5

How can I see where the chart does this background painting and is there another easy way to do this that comes to your mind?