我想沿y轴删除刻度值(3.5,3.0,2.5,2.0,1.5,1.0,0.5,0.0)。有关更多信息,请参见下图。如果无法删除则必须有一些选项来更改颜色。我会让它透明。
var data = [{data: [[0,1]], color: "red"},
{data: [[1,2]], color: "yellow"},
{data: [[2,3]], color: "green"}];
$.plot("#placeholder",data, {
series: {
bars: {
show: true,
barWidth: 0.3,
align: "center",
lineWidth: 0,
fill:.75
}
},
xaxis: {
ticks: [[0,"Red"],[1,"Yellow"],[2,"Green"]]
}
});
以下是我要遵循的示例:http://jsfiddle.net/TPp8m/