[OutSystems Charts Web] Reflow function is not working

Forge Component
(17)
Published on 3 Jul by OutSystems R&D
17 votes
Published on 3 Jul by OutSystems R&D

Dear,

The Highcharts API has a function who is called 'reflow', but this function is not working in OutSystems. Am I doing something wrong? or is the function not available in this component?

Regards,

Furkan 

Hi Furkan,


I'm assuming you need to redraw the chart, I remember having had similar problems in the past when resizing the container that had a chart in it. 

This is a sample JS code that will resize/redraw the first Chart in your page, tweak this is you have more than
one Chart in the same page (or get by ID for example):
Highcharts.charts[0].setSize( {YOUR_WIDTH} , {YOUR_HEIGHT} , doAnimation = true);


Let me know if this worked,

Hermínio