4legend
the data format is as follows
NSC: {
plan: 10, //
construction: 25, //
siteSelection: 20, //
opening: 18 //
}
the series configuration is supposed to look like this, but the color of this bar chart is all the same. And it can"t be made into four legend
.series: [
{
type:"bar",
barWidth: "60%",
data:[10, 25, 20, 18]
}
]
I forcibly changed it to the following, which is exactly the same. the problem is that the following X-axis text is crooked because there are four in each place. Ask if there is any other way to achieve it.
series: [
{
name: ""
type: "bar",
barWidth: "60%"
data: [10, 0, 0, 0]
},
{
name: ""
type: "bar",
barWidth: "60%"
data: [0, 25, 0, 0]
},
...
]