I have some data like this:
[
{ id: 12, value1: "2.92", value2: "4.22", value3: "3.69" }
,
{ id: 23, value1: "2.69", value2: "4.24", value3: "3.77" }
,
....
]
I want to create a horizontal grouped bar chart, so that there are 3 groups of bars, first all value1 bars (labeled as Value1), followed by all value2 bars and finally all value3 bars.
How can I do this - keeping in mind that the data will be updated dynamically in the future, so new data objects will be added and others will be removed. Guess I could use id as a key.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…