Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10512 closed defect (invalid)

dojox.charting.Chart2D does not render properly when node is hidden using display: none

Reported by: timdp Owned by: Eugene Lazutkin
Priority: high Milestone: tbd
Component: Charting Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:


dojox.charting.Chart2D does not render properly when the target node for the chart is hidden using CSS such as display: none.

This is limiting as when drawing charts data may be pulled from a number of sources with different response times using AJAX - ideally you should be able to hide a chart until the whole page is ready to display.

Attachments (1)

chartingDisplayNoneTest.html (1.5 KB) - added by timdp 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by timdp

comment:1 Changed 13 years ago by Eugene Lazutkin

Resolution: invalid
Status: newclosed

display: none prevents browser from assigning a geometry, so it is impossible to render charts. Either render the chart when you are ready to show it up (e.g., you got all your data for it), or use other means to hide it, e.g., position absolutely with negative offsets, or use visibility: hidden.

comment:2 Changed 13 years ago by timdp

Good solution, thank you.

Note: See TracTickets for help on using tickets.