Skip to content

Commit

Permalink
change code style
Browse files Browse the repository at this point in the history
  • Loading branch information
SnailSword committed Oct 24, 2019
1 parent 6a30b77 commit 5275715
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/layout/barGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,5 @@ function isInLargeMode(seriesModel) {

// See cases in `test/bar-start.html` and `#7412`, `#8747`.
function getValueAxisStart(baseAxis, valueAxis, stacked) {
if (valueAxis.type !== 'log') {
return valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));
}
return valueAxis.toGlobalCoord(valueAxis.dataToCoord(1));
return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));
}

0 comments on commit 5275715

Please sign in to comment.