Skip to content

Commit

Permalink
fix: revert [PR#1916](#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Oct 22, 2019
1 parent 59fcba5 commit 280b7a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
43 changes: 12 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/util/ChartUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ export const parseScale = (axis, chartType) => {
}

if (type === 'category' && chartType && (chartType.indexOf('LineChart') >= 0 ||
chartType.indexOf('AreaChart') >= 0 || chartType.indexOf('ComposedChart') >= 0)) {
chartType.indexOf('AreaChart') >= 0)) {
return { scale: d3Scales.scalePoint(), realScaleType: 'point' };
} if (type === 'category') {
return { scale: d3Scales.scaleBand(), realScaleType: 'band' };
Expand Down

0 comments on commit 280b7a9

Please sign in to comment.