我用圖表JS修改圖表JS
var chartGood = "rgba(50,182,93,0.5)";
var lineChartData = {
labels : ["3/14","3/15","3/16","3/17","3/18","3/19","3/20","3/21","3/22","3/23"],
datasets : [
{
fillColor : chartGood,
strokeColor : "rgba(255,255,255,1)",
pointColor : "rgba(50,182,93,1)",
pointStrokeColor : "#fff",
data : [12, 21, 28, 29, 31, 55, 52, 50, 49, 59]
}
]
}
var myLine = new Chart(document.getElementById("cpu-chart").getContext("2d")).Line(lineChartData);
我有2個問題
- 如何讓最後一棒的另一種顏色
- 如何讓最後一個標籤作爲圖像
[記錄在案Inssue:
下面是更多的東西你想要的顏色是什麼排列條形圖 - 不同每個酒吧顏色。 #128](https://github.com/nnnick/Chart.js/issues/128) – chridam 2014-10-30 13:44:53