mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Update misleading sample comment (#9865)
This commit is contained in:
parent
c8b885dd3e
commit
6bc47d3cea
@ -76,7 +76,7 @@ const config = {
|
||||
ticks: {
|
||||
// For a category axis, the val is the index so the lookup via getLabelForValue is needed
|
||||
callback: function(val, index) {
|
||||
// Hide the label of every 2nd dataset
|
||||
// Hide every 2nd tick label
|
||||
return index % 2 === 0 ? this.getLabelForValue(val) : '';
|
||||
},
|
||||
color: 'red',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user