This is a migrated thread and some comments may be shown as answers.

shared datasource (with bar chart)

1 Answer 40 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 30 Mar 2016, 07:47 AM

I'm using the datasource below as input to a bar chart.

How can I use the same datasource as input to a TreeMap chart? Or must I do another database call?

[{"category":"Decisive + Very","value":206,"explode":false,"color":"#3073ad"},{"category":"Decisive + Satisfied","value":14,"explode":false,"color":"#428bca"},{"category":"Major + Very","value":374,"explode":false,"color":"#2b772b"},{"category":"Major + Satisfied","value":175,"explode":false,"color":"#3c9b3d"},{"category":"Major + Neither","value":6,"explode":false,"color":"#64c465"},{"category":"Major + Slightly","value":2,"explode":false,"color":"#8dd68e"},{"category":"Some + Very","value":37,"explode":false,"color":"#b36d0e"},{"category":"Some + Satisfied","value":86,"explode":false,"color":"#f0910f"},{"category":"Some + Neither","value":17,"explode":false,"color":"#f0ad4e"},{"category":"Some + Slightly","value":3,"explode":false,"color":"#f1c68b"},{"category":"Minor + Very","value":1,"explode":false,"color":"#9d2a27"},{"category":"Minor + Satisfied","value":8,"explode":false,"color":"#cf322e"},{"category":"Minor + Neither","value":6,"explode":false,"color":"#d86562"},{"category":"Minor + Slightly","value":7,"explode":false,"color":"#e09290"},{"category":"Minor + Dissatisfied","value":4,"explode":false,"color":"#eececa"},{"category":"No + Satisfied","value":1,"explode":false,"color":"#4b4b4b"},{"category":"No + Neither","value":4,"explode":false,"color":"#747474"},{"category":"No + Slightly","value":3,"explode":false,"color":"#9c9c9c"}]

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Apr 2016, 08:37 AM
Hello,

The same dataSource instance cannot be used because the treemap requires a HierarchicalDataSource with a single root but you could use the same data - example.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeMap
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Daniel
Telerik team
Share this question
or