Skip to content

Commit

Permalink
Merge pull request #1916 from antoninklopp/fix/responsive-container-c…
Browse files Browse the repository at this point in the history
…omposed-chart

Adding Composed chart to rescaled charts
  • Loading branch information
xile611 committed Oct 22, 2019
2 parents 6219664 + e426d2c commit d39c3dc
Showing 1 changed file with 1 addition and 1 deletion.
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('AreaChart') >= 0 || chartType.indexOf('ComposedChart') >= 0)) {
return { scale: d3Scales.scalePoint(), realScaleType: 'point' };
} if (type === 'category') {
return { scale: d3Scales.scaleBand(), realScaleType: 'band' };
Expand Down

0 comments on commit d39c3dc

Please sign in to comment.