How Can I Set a Fixed Y-Axis Range in Vico? #944
-
QuestionHi, I'm using Vico to plot data that updates frequently, around three times per second. The x-axis values remain consistent, so there’s no issue there. However, my y-axis values vary significantly, sometimes reaching a max of 30–40 and other times up to 1200. This causes the y-axis scale to adjust dynamically with each update, resulting in a distracting "jumping" effect on the chart. Is there a way to lock or set a fixed range for the y-axis (e.g., 0 to 1200) to stay consistent regardless of the incoming data range? Any guidance on achieving this would be greatly appreciated. Thanks! Vico version(s)2.0.0-beta.2 UI framework(s)No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I figured it out just now ... CartesianLayerRangeProvider |
Beta Was this translation helpful? Give feedback.
-
No problem.
The app has a steep learning curve if you want to do more than just draw a
simple graph, but after diving into this issue and your source code, it
became obvious to me that your app is a great example of clever engineering
using really great composition principles. I'm 65 this year and been doing
software since university and I know great code when I see it. Good job
really!
…On Wed, 6 Nov 2024 at 03:56, Patrick Michalik ***@***.***> wrote:
Thanks for the follow-up!
—
Reply to this email directly, view it on GitHub
<#944 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJCBTW2AZ4V2YF7HU36OPTZ7HKTPAVCNFSM6AAAAABRFYPV32VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJWGQYTKOA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
I figured it out just now ... CartesianLayerRangeProvider