In eCharts Treemap chart, is it possible to display the blocks based on the name instead of value?
Go to https://echarts.apache.org/examples/en/editor.html?c=treemap-simple and replace the left panel with the following code:
option = {
series: [{
type: 'treemap',
data: [
{
name: 'AAA', // First tree
value: 30
},
{
name: 'BBB', // Second tree
value: 20
},
{
name: 'CCC', // First tree
value: 45
}
]}
]};
TreeMap chart is displayed in the below order: CCC, AAA and BBB. Is it possible to make it to display it in alphabetical order (AAA, BBB, CCC) instead?