From 969639fcc1c827291ef71ddbe8ad1d2c75ad88c3 Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Thu, 10 Jan 2019 23:05:08 +0200 Subject: [PATCH] modify comment --- src/scales/scale.category.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scales/scale.category.js b/src/scales/scale.category.js index 331ee21a946..a10bdb3592f 100644 --- a/src/scales/scale.category.js +++ b/src/scales/scale.category.js @@ -55,10 +55,10 @@ module.exports = Scale.extend({ var ds = chart.getDatasetMeta(datasetIndex).controller; - // For scales supporting getValueScaleId, we can be sure if this is a value scale. + // For controllers supporting getValueScaleId, we can be sure if this is a value scale. // For others, vertical scale is assumed to be value. // Note: This assumption works correctly for all charts with {x,y} data, - // because getRightValue returns correct thing regardless if its a label or value. + // because getRightValue returns correct thing regardless if it's a index or value. var isValueScale = ds.getValueScaleId ? ds.getValueScaleId() === me.id : !isHorizontal;