]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update misleading sample comment (#9865)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Wed, 17 Nov 2021 12:34:00 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 12:34:00 +0000 (07:34 -0500)
docs/samples/scale-options/ticks.md

index 110047e4c56dd434c89bad350ef090d8f993a220..591e42cc5657b172fbe4e211a9061cd8ba3c0a95 100644 (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',