Hi forum,
I would like to know, if I can take the info from my labels (or textboxes if is the case) that I am fill from my data base, and link them to the JavaScript code of google charts. I do not like to use the asp:charts, but I cannot do what I want to do. Below my failed example :) <script type="text/javascript" src= "https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', { 'packages': ['bar'] }); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['', ''], ['Inspeccioandas', 'document.getElementById("<%= inspT11.ClientID %>").value;'], ['OK', 'document.getElementById("<%= okT11.ClientID %>").value;'], ]); var options = { chart: { title: 'Desempeño de la Contensión', } }; var chart = new google.charts.Bar(document.getElementById( 'columnchart_material')); chart.draw(data, google.charts.Bar.convertOptions(options)); } </script> <div id="columnchart_material" style="width: 400px; height: 200px;" ></div><br /> <asp:Label runat="server" id="inspT11" ForeColor="#757579" Font-Names= "Helvetica" Enabled="false" Font-Size="12px" style="margin-left:52px">450 </asp:Label> <asp:Label runat="server" id="okT11" ForeColor="#757579" Font-Names= "Helvetica" Enabled="false" Font-Size="12px" style="margin-left:61px">448 </asp:Label> I have tried to do more things but this is the most representative. Thanks in advance. If anyone can help me, would be great and thankful. Greetings! -- 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 https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/690ce3a2-0f08-4a45-af5c-83083cf4dafe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
