Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
130
rated 0 times [  136] [ 6]  / answers: 1 / hits: 28010  / 8 Years ago, sat, may 28, 2016, 12:00:00

is there any way to do a stacked and grouped bar chart with Chart.js library?



It should look something like this http://www.highcharts.com/demo/column-stacked-and-grouped


More From » charts

 Answers
18

You should use the stack property of the dataset object for each dataset.



As you can see in Chart.js Documentation, stack is defined as:



The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack)



I believe this functionality has been introduced recently and in 2016 Chart.js did not have this because of this post


[#61990] Thursday, May 26, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
taylert

Total Points: 627
Total Questions: 91
Total Answers: 108

Location: Mayotte
Member since Mon, Sep 12, 2022
2 Years ago
taylert questions
;