0
我加入2個chart.addSeries()和其未來各chart.addSeries(),但我需要的標籤也應該得到顯示道場圖表:在y軸加上中間標籤
chart.addPlot("default", {
type: "Lines",
labels: true,
markers: true ,
htmlLabels: true
});
// Add X axis
chart.addAxis("x",{ labels:[{"value":1,"text":"0M"},{"value":1.5,"text":"15M"},{"value":2,"text":"2mmM"},{"value":3,"text":"4M"},{"value":4,"text":"6M"},{"value":5,"text":"8M"},{"value":6,"text":"10M"},{"value":7,"text":"12M"}]});
// Add Y axis
chart.addAxis("y", { min: 50, max: 200, vertical: true, fixLower: "major", fixUpper: "major" });
ADDING SERIES - HERE I WANT THE LABEL ALSO DISPALYED FOR THESE 2 SERIES
chart.addSeries("Series A", [110, 110, 110, 110, 110, 110, 110], {plot: "other", stroke: {color: "blue", width: 1.5, style:"ShortDash"},outline: null })
chart.addSeries("Series B", [130, 130, 130, 130, 130, 130, 130], {plot: "other",stroke: {color: "blue", width: 1.5, style:"ShortDash"},outline: null })
--------------------