Initially display no chart data for real time updates #1077
Unanswered
marcosalis
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Apologies if this has been already asked elsewhere, I couldn't find any reference.
I'd like to use Vico for displaying some real time data, which means that the initial graph state would have no data.
I'd need it to just show the cartesian chart grid, set to a certain span of values as provided by
CartesianLayerRangeProvider.fixed
(providing all four valuesminY
,maxY
,minX
,maxX
to be non-null).It would then be updated upon running a new transaction with the chart model producer when the data is created.
However, I haven't been able to get that working, as if I pass no data, the chart completely disappears, leaving no grid either.
Here's what I'm using at the moment:
But I see there are empty state checks in
ColumnCartesianLayerModel
that cause an exception to be thrown.What am I doing wrong?
Couldn't find anything about this scenario in the docs or tutorials either.
Thanks in advance for your help.
Module(s)
compose
Platform(s)
Android
Platform version(s)
No response
Vico version(s)
2.1.1
Beta Was this translation helpful? Give feedback.
All reactions