Hi, can you please advice, what do I do wrong below? I'd like some columns to be drawn with dashed line, "certainity" role seems perfect for that - but, its just not working..
<html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1.1', {packages: ['line']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addColumn('number', 'Day'); data.addColumn('number', 'Transformers: Age of Extinction'); data.addColumn({type:'boolean',role:'certainty'}); // certainty col. data.addRows([ [1, 41.8, false], [2, 32.4, false], [3, 25.7, false], [4, 10.5, false], [5, 10.4, false], [6, 7.7, true], [7, 9.6, true], [8, 10.6, true], [9, 14.8, true], [10, 11.6, true], [11, 4.7, false], [12, 5.2, false], [13, 3.6, false], [14, 3.4, false] ]); var options = { chart: { title: 'Box Office Earnings in First Two Weeks of Opening', subtitle: 'in millions of dollars (USD)' }, width: 900, height: 500 }; var chart = new google.charts.Line(document.getElementById('linechart_material')); chart.draw(data, options); } </script> </head> <body> <div id="linechart_material"></div> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Visualization 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-visualization-api. For more options, visit https://groups.google.com/d/optout.
