helgasoft edited a comment on issue #15189:
URL: https://github.com/apache/echarts/issues/15189#issuecomment-896244515
@100pah - <del>no, boundaryGap does not help</del> yes, boundaryGap helps.
Looks like the bug is related to *number of bars*. **Four or less bars**
with ```scale:true``` will overflow Xaxis. More than four will display
correctly.
```js
option = {
"xAxis": { scale: true
// ,boundaryGap: ['10%', '10%'] // workaround
},
"yAxis": {},
"series": [ { "type": "bar" } ],
"dataset": [{
"source": [
["x", "y"],
[ 25000, 4 ],
[ 35000, 14 ],
[ 45000, 10 ],
[ 55000, 4 ],
// [ 66000, 1 ] // un-comment to see difference
]
}]
}
```
May be related to #13321.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]