From 6bc47d3cea5ac0f496dc1b6bd53ed2fa5e1446d1 Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Wed, 17 Nov 2021 14:34:00 +0200 Subject: [PATCH] Update misleading sample comment (#9865) --- docs/samples/scale-options/ticks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- 2.47.2