Skip to content

Commit

Permalink
first and last bar out of area bounds fix - fixes #540
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed May 13, 2019
1 parent 3367084 commit aa77223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Range.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ class Range {
if (
gl.comboChartsHasBars ||
cnf.chart.type === 'candlestick' ||
(cnf.chart.type === 'bar' && cnf.xaxis.type !== 'category')
(cnf.chart.type === 'bar' && gl.isXNumeric)
) {
if (cnf.xaxis.type !== 'category') {
if (cnf.xaxis.type !== 'category' || gl.isXNumeric) {
const minX =
gl.minX -
((gl.svgWidth / gl.dataPoints) *
Expand Down

0 comments on commit aa77223

Please sign in to comment.