Hi Tomasz, The certainty role is not supported yet with the new material charts. Until it is supported, if you want the material styling, you can use theme:'material' with corecharts. See this example: http://jsfiddle.net/dlaliberte/a9efaL7f/
On Thu, Feb 12, 2015 at 8:30 AM, Tomasz Piwniuk <[email protected]> wrote: > 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. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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.
