I am using a content chart running in Google charts, IE v11, and when I work like trendline and tooltips I do not work till then. This is what happens if I add a column {type: 'string', role: 'tooltip'}, nothing appears. If I change
'package': ['scatter']
to
'package': [ 'Corechurch']
and
google.charts.Scatter (...);
to
google.visualization.scatterchart (...);
then works as listed in the documentation. I do not know what I'm remembering here is an example of the trend that is not working below. I have searched other questions but in reality no answer can be found.
& lt; Script type = "text / javascript" src = "https: //www.google.com/jsapi"></script> & Lt; Script type = "text / javascript" & gt; Google.load ('Visualization', '1.1', {'Package': ['Scatter']}); Google.setOnLoadCallback (drawChart); Function drawChart () {var data = new google.visualization.DataTable (); Data.addColumn ('Date', 'Date'); Data.addColumn ('number', 'y'); Data.addRows ([[New date (2015, 0, 7), 2], [New date (2015, 0, 7), 10], [New date (2015, 1, 2), 3], [New date (2015, 1, 3), 4], [New date (2015, 2, 9), 2]]); Var chart = new google.charts.Scatter (document.getElementById ('chart')); Var option = {Trendline: {0: {type: 'linear', color: 'black', drawback 2, opacity: 0.3, Shrov 2: truth, visible: true}}}; Chart.draw (data, options); } & Lt; / Script & gt;
After searching deep into the information I found on their website:
< Blockquote>Content charts are in beta Presence and interactivity are broadly but the way options are declared
Trendline and After making tooltips option section chart they need the option structure to further define them again, etc. Google content charts do not support these features as of the date (March 2015). If you want to use things like trendslines and tooltips, then you have a non-content chart (such as packages ['corechart'] and packages ['scatter' ]) Do not need to be used.
No comments:
Post a Comment