Thx for your help i'll try this
Le vendredi 28 septembre 2012 16:41:37 UTC+2, asgallant a écrit :
>
> In order to match the two data sets, they would have to have the same keys
> or indices (ie, $hey in $sxml->Row must match a key or index in
> $sxml2->Row). Take a look at a debug output of the two arrays to see if
> they match:
>
> var_dump($sxml->Row);
> var_dump($sxml2->Row);
>
> On Friday, September 28, 2012 5:18:45 AM UTC-4, thecatz wrote:
>>
>> there is my nex try :)
>>
>> <?php
>> $sxml = simplexml_load_file('graph.xml');
>> $sxml2 = simplexml_load_file('graphier.xml');
>> foreach ($sxml->Row as $hey=>$row){
>> echo "data.addRow([ '{$row[Dim1]}', {$row[Metric1]} ,
>> {$sxml2->Row[$hey][Metric1]}]);";
>> }
>> ?>
>>
>> but my navigator say this :
>>
>> data.addRow([ '0h', 6981 , ]);data.addRow([ '1h', 3339 , ]);data.addRow([
>> '2h', 2442 , ]);
>>
>> As you can see the third column didn't acept datas from the second xml :(
>>
>>
>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/UlNriu8wO40J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.