-
Notifications
You must be signed in to change notification settings - Fork 79
How to create multi line chart with dynamic data? #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@tobiyas09 take a look at the Dashed Axis example in the example folder and see if this helps: https://github.com/FormidableLabs/victory-native-xl/blob/main/example/app/dashed-axes.tsx it produces a chart that looks like this: ![]() |
That's great, but in the example, you know that points have low and high. I need a more generic approach, and I think I got it.
where colors is array object with y keys
|
I actually came up with a very similar approach for the same problem. However, I have found that if there is missing data in one of the lines, this does not show up correctly. This is particularly an issue when there is missing data in the middle of the data array. Any thoughts on how to fix this? |
@cyburns Did you try connectMissingData prop? |
Uh oh!
There was an error while loading. Please reload this page.
Question
In victory native legacy I created a Multi Line Chart that would map over a datasets of line data inside
VictoryChart
but now with victory native xl I need to create data array like this
How can I map over the points array inside
CartesianChart
if I don't know how many lines there will be? In my use case it depends on how many data endpoints the user will select (one or more).I tried to map over the keys of points from
CartesianChartRenderArg
but I got nothing.The text was updated successfully, but these errors were encountered: