Implementing a Time Series Chart with this library #112
Unanswered
GerryWilko
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been looking at how you might use this library in conjunction with chart-js' time series charting setup (https://www.chartjs.org/docs/latest/axes/cartesian/timeseries.html).
A few things about this stood out initially. Firstly the documentation shows that type
'line'
seems like it should allowx
to benumber
or astring
in the typeScatterDataPoint
inside chart-js. After discussing this on the ChartJS slack a helpful fellow pointed out that you can override the data type of your created type as follows:Using
vue-chart-3
we cant override this duringdefineChartComponent
. I propose one of the following:defineChartComponent
which allows overriding of the chart type. I think this should be possible 🤔{ x: Date | string; y: number }
. We could add this as a chart type oftime
or something?Many thanks for the great work with this library and I'm happy to implement either of the suggestions.
Beta Was this translation helpful? Give feedback.
All reactions