I actually found the answer myself from trail and error.

If I remove the scaleColumns, same visual effect but now I have my
Yaxis values.

I am very surprise and applaud on the level of question to answer
these google admin people actually answers. I expect a better level of
communication from google.

Churk

On May 5, 10:12 am, Churky <[email protected]> wrote:
> I am having an issue with using scalecolumns, If i do not set this
> option my Y-axis has value, But once I did scaleColumns and scaleType,
> my Y-axis values dissappears: Here is a snip of the code:
>
> google.load('visualization', '1', {'packages':['annotatedtimeline']});
>                 google.setOnLoadCallback(drawChart);
>                 function drawChart() {
>                         var data = new google.visualization.DataTable();
>                         data.addColumn('date', 'Date');
>                         data.addColumn('number', 'Column1');
>                         data.addColumn('string', 'title1');
>                         data.addColumn('string', 'text1');
>                         data.addColumn('number', 'Column2');
>                         data.addColumn('string', 'title2');
>                         data.addColumn('string', 'text2');
>                         data.addColumn('number', 'Column3');
>                         data.addColumn('string', 'title3');
>                         data.addColumn('string', 'text3');
>                         data.addColumn('number', 'Column4');
>                         data.addColumn('string', 'title4');
>                         data.addColumn('string', 'text4');
>                 data.addRows(375);
>
>                         data.setValue(0, 0, new Date(2008, 3, 21));
>                                 data.setValue(0, 1, 8);
>                                 data.setValue(0, 4, 0);
>                                 data.setValue(0, 7, 0);
>                                 data.setValue(0, 10, 0);
>                         data.setValue(1, 0, new Date(2008, 3, 22));
>                                 data.setValue(1, 1, 10);
>                                 data.setValue(1, 4, 0);
>                                 data.setValue(1, 7, 0);
>                                 data.setValue(1, 10, 0);
>                         data.setValue(2, 0, new Date(2008, 3, 23));
>                                 data.setValue(2, 1, 10);
>                                 data.setValue(2, 4, 0);
>                                 data.setValue(2, 7, 0);
>                                 data.setValue(2, 10, 0);
>
>  ...
> var startDate = new Date();
>                 startDate.setMonth( startDate.getMonth() - 3 );
>                 var chart = new google.visualization.AnnotatedTimeLine
> (document.getElementById('A1_1_1'));
>                 chart.draw(data, {'displayAnnotations':'true',
> 'legendPosition':'newRow','zoomEndTime': new Date(), 'zoomStartTime':
> startDate, 'scaleType':'maximize', 'scaleColumns':[0,1,2,3]});
>
> }
>
> Is there something wrong wtih my code?
--~--~---------~--~----~------------~-------~--~----~
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