I can't really share the link because it's on a secure/private/
corporate site, but the scenario is easily reproducable:
Consider a report page with a table of data, 20 columns wide with a
variety of data.
At the bottom of the table, I have a toggle link "Show/Hide Charts".
Clicking the toggle will make the div appear that has the included
jgplot. Obviously, my issue is that the width of the chart is ALWAYS
300px wide because of this bug. I need to be able to set the width of
the div or charge and have it appear that way. Nothing more, nothing
less. I also have a strong need to be able to set different widths
for different charts. Some charts are hornizontal bar charts with a
ton of data, that need to be 900px wide....while other pie charts can
only be 250px wide. I'm shocked this isn't the first feature built
into jgplot. :(
As for how the parameter is passed, I really don't care, as long as I
can pass the width/height of EACH chart (per chart). I know exactly
the dimensions I want them to be, I just need to be able to pass the
value and the plot actually use the value! :/
As for drawing this at document ready time, I can't easily do that,
because the header is already drawn by the time this code gets
executed.