From: Jukka Kurkela Date: Wed, 17 Nov 2021 12:34:00 +0000 (+0200) Subject: Update misleading sample comment (#9865) X-Git-Tag: v3.6.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bc47d3cea5ac0f496dc1b6bd53ed2fa5e1446d1;p=thirdparty%2FChart.js.git Update misleading sample comment (#9865) --- diff --git a/docs/samples/scale-options/ticks.md b/docs/samples/scale-options/ticks.md index 110047e4c..591e42cc5 100644 --- a/docs/samples/scale-options/ticks.md +++ b/docs/samples/scale-options/ticks.md @@ -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',