Column chart often becomes strange.

14 views
Skip to first unread message

Blue

unread,
Jan 17, 2013, 8:50:25 PM1/17/13
to google-visua...@googlegroups.com

The value acquired from the data base is made a graph.
When the screen is displayed, shape in the graph often becomes strange.

My best regards.
 

[JavaScript]---------------------------------------------------------------------
var data = google.visualization.arrayToDataTable([
            ['name','hour'],
            ['test1',0],
            ['test2',0.1],
            ['test3',0.2],
            ['test4',0.3],
            ['test5',0.4],
            ['test6',0.5],
            ['test7',0.6],
            ['test8',0.7],
            ['test9',0.8],
            ['test10',0.9],
            ['test11',1.0],
            ['test12',1.1],
            ['test13',1.2],
            ['test14',1.3],
            ['test15',1.4]
        ]);
       
        var options = {
            title: 'test',
            vAxis: {minValue: 0}
        };
    }
   
    var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
    chart.draw(data,options);
---------------------------------------------------------------------------------
chart.png

Daniel LaLiberte

unread,
Jan 17, 2013, 9:19:25 PM1/17/13
to google-visua...@googlegroups.com
Hi Blue,

If I copy/paste the code you provided, I get a syntax error because of an extra '}'.  The last one in your code.  That might just be a typo, or I wonder if this changes your code in some way that would explain what you are seeing.  An earlier data variable, if there is one, would be exposed  If I remove the extra '}', it works fine for me, and I get the expected graph ranging from 0 to 1.5.

dan

--
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/-/xtClcJSJE-gJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
dlaliberte@Google.com   562D 5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Blue

unread,
Jan 17, 2013, 9:58:07 PM1/17/13
to google-visua...@googlegroups.com
I'm sorry. The mistake was found in the code.
The value acquired from the data base in reality enters though this code has the value to 0~1.5.
I think the acquired value to be set surely.
Because the value displayed to match the cursor is correct.

2013年1月18日金曜日 11時19分25秒 UTC+9 Daniel LaLiberte:
dan

To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
dlali...@Google.com   562D 5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Blue

unread,
Jan 17, 2013, 10:05:16 PM1/17/13
to google-visua...@googlegroups.com
It forgot to write.
At present, it was only confirmed to become strange with iPhone5.
Reply all
Reply to author
Forward
0 new messages