No worries
Just two more things I think i comment on and maybe help with
(1)
addRow and setCell generally do the exact same thing, but in different
resolutions

for example, replace lines 6 to 12 in the playground example with the
following:

    data.addRows(1000);
    for (var i = 0; i < 500; ++i) {
      data.setCell(i, 0, Math.sin(i / 5) * 0.25);
      data.setCell(i, 1, Math.cos(i / 25));
    }
    for (var i = 0; i < 500; i++) {
      data.setCell(i + 500, 0, Math.sin(i / 25));
      data.setCell(i + 500, 2, Math.cos(i / 10) * 0.5);
    }



And achieve the exact same result with the exact same underlying data, only
using a different 'setter' method to build the data. 'addRow' is just a
convenience method adding one empty row and a few setCell's.

(2)
Now I suspect your problem might have to do with understanding how multiple
scatter series should be placed in one scatter chart data table. So,
generally, multiple series on the same scatter chart should be organized
with the x values of both series always found in the first column and the y
values of the first series found the second columns, y values of the second
series found the third column, etc.

Now, in many cases we wish to have completely different x values for two
different series. In the above example that is achieved by placing values of
the first series in first 500 rows and values of the second series in the
following 500 rows, with many null cells in redundant cell positions, so the
data is organized the following way (with only 4 values per series, instead
of 500 and having lowercase vs uppercase letters denoting two data series):

x1  y1 null
x2  y2 null
x3  y3 null
x4  y4 null
X1 null Y1
X2 null Y2
X3 null Y3
X4 null Y4

Thus achieving the two distinct series on one chart
Hope I helped
   Badtnik


On Sat, Jun 12, 2010 at 12:30 AM, Firekissed <[email protected]> wrote:

> This is what I want to achieve, but in this google example, dots are
> defined using directly data.addRow, data.setValue arn't use.
>
> And I don't know how to deal with the extraction of X,Y coordinates in
> my mySQL with that kind of procedure.
>
> The php variables $posx and $posy define thoose values(X, Y), if you
> have an idea to manage that use of google scatter charts I would be
> really pleased to hear it ^^ !
>
> Thank you for your help !
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-visualization-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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.

Reply via email to