Update misleading sample comment (#9865)

This commit is contained in:
Jukka Kurkela
2021-11-17 14:34:00 +02:00
committed by GitHub
parent c8b885dd3e
commit 6bc47d3cea

View File

@@ -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',