My client have a Highcharts license and it is using this library in his application for different charts.
Now he wanted to display a column chart based on some data, and when it clicks on a checkbox wants that this column charts to be redraw and the width of each column to be different based on some specific values. In this moment I managed to change the column width but the problem is that the position of each column it will not change, and this means that some columns could overlap. Please check the attached images. Is there any way to achieve this ?
I also tried to change the x position of each column like this, but without effect.
Code: Select all
const selector = document.querySelector('.highcharts-series-0')
for (let i = 0; i < selector.children.length; i++) {
selector.children[i].setAttribute('x', '0')
}
Cosmin