私はいくつかのChart.jsで作業しており、グラフ上の軸線を削除する方法を解明しようとしています。chart.jsの軸線の削除
You can see the grid lines I am trying to remove in this image.
私は、データが表現され、チャート内に表示されるグリッド線を削除するために管理しているが、私はこれらの2行を削除し、問題が生じています。
私は下のチャートのために作成したchart.jsを見ることができます。
var ctx = document.getElementById("volCause").getContext('2d');
var volCause_Doughnut = new Chart(ctx, {
type: 'horizontalBar',
data: {
labels: <?php echo $cause_label_json?>,
datasets: [{
backgroundColor: benefactoGraph_colours,
data: <?php echo $cause_value_json?>
}]
},
options: {
maintainAspectRatio: false,
legend: {
display: false,
},
scales: {
xAxes: [{
scaleLabel: {
display: true,
labelString: 'Volunteer Hours',
},
gridLines: {
display: false,
},
}],
yAxes: [{
gridLines: {
display: false,
}
}]
}
}
});
どのような提案も大歓迎です。
これは完全に感謝しました! :) –
あなたは大歓迎です:) –