kurkle / chartjs-plugin-gradient

Easy gradients for Chart.js
MIT License
37 stars 6 forks source link

Time and timeseries scale support by setting formatted dates #15

Closed stockiNail closed 2 years ago

stockiNail commented 2 years ago

At the moment, when the plugin is used in a chart with time or timeseries scale, the value to define the color stop must be configured in UTC (millis). Probably this is not really comfortable for the users.

The keys of color object could be parsed (as done in the annotation plugin: https://github.com/chartjs/chartjs-plugin-annotation/blob/master/src/helpers/helpers.chart.js#L13-L22)