function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cmascrenhas1.3965215542573457E12cmascrenhas1.3965215542573457E12 

Apex Charts Auto Resizing

Hi,

I have created Apex Charts were the number of bars are not fixed ( Depends on a List size). When there are less number of bars the size is very huge .
Could you please let me know if the size of the Chart can be made dynamic like Tables in Apex.

Thank you,

Regards,
Christwin

AshwaniAshwani
This is the limitation in visualforce charts. Once chart renedered it goes fixed. In this scenerio we set chart width from controller and bind it with chart "width" attribute on visualforce page.
In controler if list size is large then we increase the chart width to appropiate level so chart don't mix with other bars.
Vinita_SFDCVinita_SFDC
Hi,

In Apex charts there is an attribute, resizable (boolean). This specifies whether or not the chart is resizable after rendering.