Hello, I'm not sure what you're looking to do. The gridlines are automatically determined like this for a continuous axis. Maybe you're looking for a discrete axis? You can read more about the difference here: https://developers.google.com/chart/interactive/docs/customizing_axes#Discrete_vs_Continuous
-Mitch On Fri, Apr 5, 2013 at 7:00 PM, Eli Rozen <[email protected]> wrote: > This strange thing seeme to let me see only 4 gridlines on the horizontal > line. Can anybody help? > > <html> > <head> > <script type="text/javascript" src="https://www.google.com/jsapi > "></script> > <script type="text/javascript"> > google.load("visualization", "1", {packages:["corechart"]}); > google.setOnLoadCallback(drawChart); > function drawChart() { > var data = new google.visualization.DataTable(); > data.addColumn('date', 'Date'); > data.addColumn('number', 'Now'); > data.addColumn('number', 'Comparison'); > data.addRows([ > [new Date(2008, 1 ,1), 1264, 1477], > [new Date(2008, 1 ,2), 1499, 1406], > [new Date(2008, 1 ,3), 1322, 1105], > [new Date(2008, 1 ,4), 1147, 1154], > [new Date(2008, 1 ,5), 1309, 1227], > [new Date(2008, 1 ,6), 1251, 1298], > [new Date(2008, 1 ,7), 1238, 1264], > [new Date(2008, 1 ,8), 1264, 1477], > [new Date(2008, 1 ,9), 1499, 1406], > [new Date(2008, 1 ,10), 1322, 1105], > [new Date(2008, 1 ,11), 1147, 1154], > [new Date(2008, 1 ,12), 1309, 1227], > [new Date(2008, 1 ,13), 1251, 1298], > [new Date(2008, 1 ,14), 1238, 1264], > [new Date(2008, 1 ,15), 1789, 1256], > [new Date(2008, 1 ,16), 1789, 1078], > [new Date(2008, 1 ,17), 1965, 975], > [new Date(2008, 1 ,18), 1654, 896], > [new Date(2008, 1 ,19), 1478, 789], > [new Date(2008, 1 ,20), 1278, 989], > [new Date(2008, 1 ,21), 1078, 1009], > [new Date(2008, 1 ,22), 1698, 1109], > [new Date(2008, 1 ,23), 1398, 1209], > [new Date(2008, 1 ,24), 1298, 1509], > [new Date(2008, 1 ,25), 1298, 1009], > [new Date(2008, 1 ,26), 1198, 1209], > ]); > var chart = new > google.visualization.LineChart(document.getElementById('chart_div')); > chart.draw(data); > } > </script> > </head> > <body> > <div id="chart_div" style="width: 2000px; height: 1000px;"></div> > </body> > </html> > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-chart-api?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-chart-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
