You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When viewing the samples for vertical and horizontal bar charts I noticed there's two issues, one with adding datasets and the other with removing datasets.
The issue with adding datasets can be seen straight away when adding a new dataset:
When creating the number for the name of the dataset, it doesn't take into account 0 indexing of the dataset array.
The problem with removing datasets is that it removes the first element of the array ".splice(0,1)". However by doing this, you also mess up the naming scheme of the datasets. This can lead to a very strange scenario when mixed with the adding dataset issue:
This was achieved by adding datasets up to 'Dataset 4' and then removing and adding a dataset in turn until all the datasets are 'Dataset 4'.
When viewing the samples for vertical and horizontal bar charts I noticed there's two issues, one with adding datasets and the other with removing datasets.
The issue with adding datasets can be seen straight away when adding a new dataset:
When creating the number for the name of the dataset, it doesn't take into account 0 indexing of the dataset array.
The problem with removing datasets is that it removes the first element of the array ".splice(0,1)". However by doing this, you also mess up the naming scheme of the datasets. This can lead to a very strange scenario when mixed with the adding dataset issue:
This was achieved by adding datasets up to 'Dataset 4' and then removing and adding a dataset in turn until all the datasets are 'Dataset 4'.
URLs for quick reference:
http://www.chartjs.org/samples/latest/charts/bar/vertical.html
http://www.chartjs.org/samples/latest/charts/bar/horizontal.html
The text was updated successfully, but these errors were encountered: