I'm trying to to add a scrollBar
on xAxis
through chart.scrollablePlotArea
to my chart but it's not working as expected. I was having trouble to make it appear. The solution I found was to remove containerProps
from my react-component
containerProps={{
className: "chart",
style: {
height: "500px",
minWidth: "280px"
}
}}
With that the scrollBar
appeared, but some unexpected behaviors occured, first the fullScreen
broke (It started showing up black bars), second the customButton
started moving around with the chart. I searched on exporting.buttons.contextButton
API but couldn't find any property to fix its position.
Here is a working demo, appreciate any help.