Zero Line Styling #382
Replies: 1 comment 2 replies
-
@wslates-ng unfortunately these specific CSS definitions seem to be empty stubs and the more pronounced vertical/horizontal lines that go through origin '(0,0)' are not implemented. You can force the axes however that the zero is always included in their auto-computed ranges. The grid-lines are drawn by the GidRenderer that provides the following CSS definitions: It shouldn't be hard to extend this. Maybe you would be willing to make a PR? Alternatively, with the existing code-base, you could use either dummy DataSets, the data label renderer, or marker plugins to achieve the same visual effect. N.B. JDK8 became increasingly hard to maintain and increasing incompatibilities w.r.t. JDK11 and beyond (Jigsaw, internal Java API, etc.). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have very much enjoyed your library thus far. Great performance and I've been able to achieve just about everything I've wanted to with ease.
I am using your JDK8 implementation.
However, some of my users have decided that they want to be able to clearly see the zero lines in the chart. In my previous implementation using vanilla JavaFX, I used the
.chart-vertical-zero-line
and the.chart-horizontal-zero-line
CSS class selectors. I noted that these same class selectors are used in your chart.css file. However, it doesn't seem to do anything for me when I add styling to the chart. I also couldn't find it used in source code. Is there any way achieve this?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions