Skip to content

Commit

Permalink
modify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Jan 13, 2019
1 parent e286063 commit 969639f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scales/scale.category.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 969639f

Please sign in to comment.