You could do the second chart in a second script if you wanted to, but 
there unless there is a compelling reason to do so, I wouldn't.  You only 
need to load the API once; the "1" in the loader tells the API to load the 
most current release version.  Here's an example of one way in which this 
can be done: http://jsfiddle.net/asgallant/x3AwX/.  This example is just 
one way of accomplishing your goal; there are many others, and you should 
use one that works well with your particular needs; I just can't tell what 
that will be without knowing the specific formatting of the data you will 
use.  

On Friday, May 17, 2013 11:58:16 AM UTC-4, Scaramouche wrote:
>
> Sorry I can not provide information, I have no access to it now.
> But in the Pie Chart sales would be presented to the shops, and the Column 
> Chart, the shop this historic income / expenses.
>
> I have been trying as I could do this, but I have a couple of questions.
>
> At the time of writing the code for the second visualization has to be in 
> another script or the same?. And to load the second would be:
>
> google.load ('visualization', '2 ', {packages: [' corechart '], callback: 
> drawChart});
>
> I put the '2 ', because I guess the 1 refers to the Pie Chart.
>
> And to create the listener and the trigger would be like that?
>
>   google.visualization.events.addListener (corechart, 'ready', drawChart);
>   google.visualization.events.trigger (corechart, 'ready', null);
>
> Being drawChart the function that performs all about the Column Chart.
>
> I know programming, but I've never done in javascript, so I have these 
> doubts.
>
> For now I'm testing with the samples given in the Playground, so that 
> appears to select any other visualization.
>
> El viernes, 17 de mayo de 2013 16:59:56 UTC+2, asgallant escribió:
>>
>> Can you provide some sample data for me to work with?
>>
>> On Friday, May 17, 2013 10:48:06 AM UTC-4, Scaramouche wrote:
>>>
>>> Thanks for the answer asgallant 
>>> The Pie Chart has information on percentages of a year, while Column 
>>> Chart has historical information.
>>> The relaccionados is the name of the portion of Pie Chart, that I can 
>>> get with GetSelection method.
>>>
>>>
>>>
>>> El viernes, 17 de mayo de 2013 15:47:37 UTC+2, asgallant escribió:
>>>>
>>>> You should be able to set up your PieChart and ColumnChart like that, 
>>>> but I will need some more detail about how the two charts relate to one 
>>>> another in order to help you set it up.  What data does the PieChart use? 
>>>>  When you click on a slice, how does that data relate to the ColumnChart?
>>>>
>>>> Yes, you can read data from a file.
>>>>
>>>> No, you cannot use images in the bars of the ColumnChart.
>>>>
>>>> On Friday, May 17, 2013 4:15:42 AM UTC-4, Scaramouche wrote:
>>>>>
>>>>> Hello!
>>>>>
>>>>> I need to display two Chart in the same html. The first is a Pie 
>>>>> Chart, and Column Chart shows a selection on the other.
>>>>>
>>>>> To represent the Column Chart would send the event 'ready' By clikink 
>>>>> in the Pie Chart.
>>>>>
>>>>> When loading the data, can you read from a file?. Given the 
>>>>> information structure (Example: ['Year', 'Sales',' Expenses'], ['2004 ', 
>>>>> 1000, 400], ...), there should be no problem, right?
>>>>>
>>>>>
>>>>> And another question, can you change the bars on the Column Chart to 
>>>>> display an image?
>>>>>
>>>>> Thank you very much.
>>>>>
>>>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to