I'm having the same problem here, with "minValue" option, which cannot be set to 1!
<!-- You are free to copy and use this sample in accordance with the terms of the Apache license (http://www.apache.org/licenses/LICENSE-2.0.html) --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title> Google Visualization API Sample </title> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['corechart']}); </script> <script type="text/javascript"> function drawVisualization() { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ ['Rodada', 'Posição' ], [1, 20], [2, 19], [3, 18], [4, 17], [5, 19], [6, 20], [7, 16], [8, 13], [9, 14], [10, 17], [11, 12], [12, 10], [13, 8], [14, 7], [15, 6], [16, 6], [17, 6], [18, 4], [19, 2], [20, 1], [21, 3], [22, 5], [23, 7], [24, 9], [25, 11], [26, 9], [27, 7], [28, 6], [29, 5], [30, 4], [31, 3], [32, 4], [33, 5], [34, 7], [35, 3], [36, 2], [37, 1], [38, 1] ]); // Create and draw the visualization. new google.visualization.LineChart(document.getElementById('visualization')). draw(data, {curveType: "line", title: 'Clube Patético Paranaense', width: 900, height: 400, vAxis: {title: 'Posicao', direction: -1, minValue: 1, maxValue: 20 }, hAxis: {title: 'Rodadas', minValue: 1, maxValue: 38 }} ); } google.setOnLoadCallback(drawVisualization); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="visualization" style="width: 500px; height: 400px;"></div> </body> </html> On Tuesday, July 10, 2012 6:42:04 PM UTC-3, Vale wrote: > > Hey, I am working with simple line charts, but my chart options doesnt > work. It only gets a title, but nothing else. > An example for the integration is > http://www.myclimbs.de/produkt/15-513-0173-Marmot-Always-Summer-Daunenschlafsack > It tried it like this > >> 'vAxis.title': 'Preis in Euro', >> >> and like this > >> vAxis.title: 'Preis in Euro', >> > but nothing worked. Can you help me? > > > <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('datetime', 'Zeit'); > data.addColumn('number', 'Preis'); data.addRows([ > [new Date(2012, 06, 05), 113.97], [new Date(2012, > 06, 07), 101.97], [new Date(2012, 06, 11), 123.47]]); var > options = { 'legend.position': 'none', 'vAxis.title': 'Preis in > Euro', 'vAxis.minValue': 0 }; var chart = new > google.visualization.LineChart(document.getElementById('chart_div')); > chart.draw(data, options); } </script> >> >> > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-chart-api/-/O95-H9rUs0gJ. 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-chart-api?hl=en.
