How can I sort, insert in between and update full dataset in chartjs?

前端 未结 2 1327
清歌不尽
清歌不尽 2021-01-06 13:47

I have a few issues with chartjs which simple update method won\'t solve.

I wonder if there is an option to:

  1. painlessly sort the datasets;
  2. ins
2条回答
  •  醉话见心
    2021-01-06 14:03

    I came to stackoverflow having the same question so what I have done is created a plugin that allows you to add a sort function to ChartJS

    https://github.com/scotthsieh0503/chartjs-plugin-sort

    it also allows you to pass in a 'pre-sorted' array as a reference for sorting

提交回复
热议问题