The easy way is usually to combine the two DataTables together and use the 
view parameters of the charts to separate out the columns needed for each. 
 If you are bound and determined to make your life difficult, you can 
instead set up the filters in a Dashboard for one chart, and create 
"statechange" event handlers for each of your controls that get the current 
state of each control and use those states to filter the data for the 
second chart.  This is almost guaranteed to be more work than joining the 
two sets of data and using a single DataTable as the source for both charts 
(and the API even provides a method of joining two 
DataTables<https://developers.google.com/chart/interactive/docs/reference#google_visualization_data_join>that
 takes care of the hard part for you).

On Friday, March 7, 2014 6:25:53 PM UTC-5, Bailey Lee wrote:
>
> HI
>
> I want to bind two chart which has the same x-axis but different data with 
> one controller.
>
> Now I could only realize it with adding all the data but assign different 
> columns to different chart. 
>
> Is there any other better ideas for realizing this?
>
>
> Thanks,
>
> Bailey
>

-- 
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