Hello,

I have a simple dashboard with a LineChart and a ChartDateFilter.  I want 
to show data from different dataviews depending on user input.

Right now, I maintain the dataviews as global variables.  When I want to 
show show a particular dataset, I call

*dashboard.draw(dataviews[index]);*

I have two datasets in my test set.  No matter which one I draw first, it 
displays correctly, but when I draw the second one the chart becomes 
corrupted.  I have attached a picture of the resulting chart.  As you can 
see, the line chart is zoomed in infinitely far.  One of the sliders on the 
ChartDataFilter is gone.  If I try to move the other one, I get a 
javascript error:
Error: Invalid negative value for <rect> attribute 
width="-22811.88127169454"

Afterwards, displaying the first dataset does not fix the chart.  I am not 
sure how to debug this behavior.  Is it acceptable to simply switch 
dataviews when using the draw function?

I can work around the issue by completely destroying and rebuilding the 
dashboard, ChartWrapper, and ControlWrapper, but this is somewhat slow.  

Any suggestions would be appreciated.

Thanks,
Morgan


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to