S
S
Sergey Nikolaev2016-01-27 11:48:45
JavaScript
Sergey Nikolaev, 2016-01-27 11:48:45

How to update highchart chart size to container size?

The Highcharts chart is built before the container is built. And for this reason, it does not occupy the entire container. If you change the size of the window, then it immediately updates the dimensions to the correct ones. How to manually force Highcharts to update sizes? .redraw() doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Shchurin, 2016-01-27
@Devastor

For example like this
_inlineTrend.setSize(bounds.width, bounds.height, false);
Bounds count from container size

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question