dojodojox.charting

Setting chart dimensions without calling .resize()


Is it possible to programmatically set the dimensions of a chart before rendering? I have 10-20 charts on one page. Rendering the charts is a performance bottleneck, and having to resize the charts means that they are needlessly rendered twice. It would be a big time saver if I could just specify the size before they are rendered via style or parameter.

I have tried:

Thanks!


Solution

  • When the chart renders, it should create a surface based on the underlying node that the chart is built off of. So by changing the styling of the node that your chart is using, then the chart should render based on that node.