0
ラベルのデフォルトの色を変更するにはどうすればよいですか?ここでラベルの色を変更するvue-chartjs
は、デフォルトチャートの実装です、私はあなたが凡例にラベルを意味推測
<script>
import { Pie} from 'vue-chartjs'
export default Pie.extend({
props: ['one', 'two', 'three'],
mounted() {
// Overwriting base render method with actual data.
this.renderChart({
labels: ['One', 'Two', 'Three'],
datasets: [
{
label: 'Stuff',
backgroundColor: ['#C28535', '#8AAE56', '#B66C46'],
data: [this.one, this.two, this.three]
}
]
})
}
})
</script>
乾杯