Adding upper and lower limits to a time series and styling of limits. #404
Unanswered
Oliver-Loeffler
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Can you be more specific about the use case? Do you want to limit the time axis or the value axis? I'm not a maintainer, but I've come across some use cases where I e.g. needed to limit a time series to the last point minus N seconds. That was pretty easy to solve with a custom dataset implementation that updates the axis limits as needed. Something like private void recomputeLimitsInternal() {
AxisDescription xAxis = getAxisDescription(0);
AxisDescription yAxis = getAxisDescription(1);
xAxis.set(minTime, maxTime);
yAxis.set(minValue, maxValue); // or call yAxis.clear(), and yAxis.add(value) for all included values
} A custom renderer shouldn't be necessary unless you need to optimize performance. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Chart-fx is really an awesome project and it works great - I am kind of new to it and still learning the way how it is assembled.
There 2 questions came to my mind, hopefully you can help.
Creating a custom dataset implementation and also a custom renderer might be the way to go.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions