我在与angularjs一起使用图表。还尝试使用不是典型图表的森伯斯特。是否有可能在海图上有一个朝阳的传说? The example from their websites没有显示任何图例。 Here is an example是我到目前为止所做的。这是配置
var sunburstObj = {
credits: {
enabled: false
},
colors: [
"rgba(0,0,0,0)",
"rgba(219,199,157,1)",
"rgba(70,45,0,1)",
"rgba(250,246,237,1)",
"rgba(166,84,27,1)",
"rgba(92,102,112,1)"
],
tooltip: {
headerFormat: "",
pointFormat: "{point.name}-{point.value}"
},
legend: {
enabled:true,
labelFormatter: function() {
return this.name;
},
width: "100%"
},
plotOptions: {
sunburst: {
allowDrillToNode: false,
allowPointSelect: true,
borderWidth: 0,
cursor: "pointer",
dataLabels: {
format: "{point.name}",
filter: {
property: "innerArcLength",
operator: ">",
value: 16
}
},
levels: [
{
level: 1,
levelIsConstant: false,
dataLabels: {
enabled: false
}
},
{
level: 2,
colorByPoint: true
}
]
}
},
series: [
{
type: "sunburst",
data: assetData,
name: "test",
showInLegend:true
}
]
};