After a closer look at the ScatterChart Data_Format:
http://code.google.com/apis/visualization/documentation/gallery/scatterchart.html#Data_Format

It looks like the last two lines should be:
          ,{c:[{v:0},{v:'--'},null]} // blank left column
          ,{c:[{v:3},{v:'--'},null]} // blank right column
instead of:
           ,{c:[{v:0},{v:'--'},{v:0}]}  // empty left Set -- with
point at [0,0]
           ,{c:[{v:3},{v:'--'},{v:0}]}  // empty right Set
If you want to still have it start from 0 instead of the lowest value
in your set (~ 40),
then add:
          ,{c:[null,null,{v:0}]} // min y=0
as the last row. "null" means that the value is not displayed.

Best Regards,
->> Josh W. <<-
Sample code here (press the [Eval] button)
http://www.redthreadtapestry.com/vis/vis3.html

On Dec 4, 1:01 pm, "Josh W." <[email protected]> wrote:
>
> // START CODE
>
> // Added Set (number) column and two extra rows of dummy data.
> var dt = new google.visualization.DataTable( {
>   cols: [{id: 'Set', 'label': 'Set', type: 'number'},
>          {id: 'sex', label: 'Sex', type: 'string'},
>          {id: 'weight', label: 'Weight', type: 'number'}
>         ],
>   rows: [{c:[{v: 1}, {v: 'male'}, {v: 55}]},{c:[{v: 1}, {v: 'male'},
> {v: 59}]},{c:[{v: 1}, {v:
> 'male'}, {v: 66}]},{c:[{v: 1}, {v: 'male'}, {v: 70}]},
>           {c:[{v: 2}, {v: 'female'}, {v: 45}]},{c:[{v: 1}, {v:
> 'male'}, {v: 49}]},{c:
> [{v: 1}, {v: 'male'}, {v: 46}]},{c:[{v: 1}, {v: 'male'}, {v: 50}]}
>           ,{c:[{v:0},{v:'--'},{v:0}]}  // empty left Set
>           ,{c:[{v:3},{v:'--'},{v:0}]}  // empty right Set
>         ]
>
> } );
>
....

--

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