Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify comment
  • Loading branch information
kurkle committed Jan 13, 2019
commit 969639fcc1c827291ef71ddbe8ad1d2c75ad88c3
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