fair-acc / chart-fx

A scientific charting library focused on performance optimised real-time data visualisation at 25 Hz update rates for data sets with a few 10 thousand up to 5 million data points.
GNU Lesser General Public License v3.0
488 stars 90 forks source link

Several questions about axis #632

Closed zkycaesar closed 7 months ago

zkycaesar commented 8 months ago

I am using the version 11.3.0, and encountered some problems:

Question 1

image "0" is half hidden. Is that a bug?

Question 2

image I want the max value and the min value to be shown on the axis. Is there a way to do that?

Question 3

image When I set autoRangePadding to 0.1, it seems not both side take effect. Why is that?

ennerf commented 8 months ago

Thanks for reporting.

Q1

Can you provide a minimum reproducible sample? Are you by any chance disabling axis padding or adding something to the bottom-left corner?

Q2

You can use X and Y indicators

Q3

That part of the code shouldn't have changed compared to 11.2.7. I'm guessing that zero times the padding is still zero, but I'll need to take a look at how that's implemented. Can you add this to the sample?

zkycaesar commented 8 months ago

Q1

Can you provide a minimum reproducible sample? Are you by any chance disabling axis padding or adding something to the bottom-left corner?

@ennerf Yes you are right. I set -fx-axis-padding: 1 in css file. I don't remember why I did that. My bad, sorry.