Skip to content

Commit

Permalink
Update misleading sample comment (#9865)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Nov 17, 2021
1 parent c8b885d commit 6bc47d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/samples/scale-options/ticks.md
Expand Up @@ -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',
Expand Down

0 comments on commit 6bc47d3

Please sign in to comment.