it is invalid for me to add roam:true to tree, but it is valid for diagrams. Is it true that echarts3.0 "s tree does not support this parameter
let myChart = this.$echarts.init(document.getElementById("myChart"));
myChart.setOption({
tooltip: {
trigger: "item",
triggerOn: "mousemove"
},
series: [
{
type: "tree",
name: "tree2",
roam: true,
data: [
{
name: "flare",
children: [
{
name: "flex",
children: [{ name: "FlareVis", value: 4116 }]
},
{
name: "scale",
children: [
{ name: "IScaleMap", value: 2105 },
{ name: "LinearScale", value: 1316 },
{ name: "LogScale", value: 3151 },
{ name: "OrdinalScale", value: 3770 },
{ name: "QuantileScale", value: 2435 },
{ name: "QuantitativeScale", value: 4839 },
{ name: "RootScale", value: 1756 },
{ name: "Scale", value: 4268 },
{ name: "ScaleType", value: 1821 },
{ name: "TimeScale", value: 5833 }
]
},
{
name: "display",
children: [{ name: "DirtySprite", value: 8833 }]
}
]
}
],
symbolSize: 7,
label: {
normal: {
position: "left",
verticalAlign: "middle",
align: "right"
}
},
leaves: {
label: {
normal: {
position: "right",
verticalAlign: "middle",
align: "left"
}
}
},
expandAndCollapse: true,
animationDuration: 550,
animationDurationUpdate: 750
}
]
});