Hi I am doing the exact same thing but i am still getting the same error ( Uncaught (in promise) TypeError: google.visualization.arrayToDataTable is not a function at drawVisualization)on the console and the chart is not showing up. Do i have to update the version or anything somewhere in the asp.net code or web.config? Please help. I can screen share with you if you can call ping me and we can go through it together.
On Wed, Jun 17, 2020 at 9:14 PM 'Daniel LaLiberte' via Google Visualization API <[email protected]> wrote: > Here is your chart working in a jsfiddle: > https://jsfiddle.net/dlaliberte/mcxkr7oa/1/ > Seems to work fine. I added a div with id="chart_line". > > On Wed, Jun 17, 2020 at 8:11 PM Deepak Alexander < > [email protected]> wrote: > >> This is how i am loading the library. Please let me know what is the >> problem. >> >> <script type="text/javascript" src=" >> https://www.gstatic.com/charts/loader.js"></script> >> >> <script type='text/javascript'> >> google.charts.load('current', {packages: ['corechart']}); >> google.charts.setOnLoadCallback(drawVisualization); >> function drawVisualization() { >> var data = google.visualization.arrayToDataTable([ >> ['EventDate', '3M E >> coli'],['09/29/11',767],['10/25/11',133],['11/28/11',667],['01/12/12',467],['02/29/12',133],['04/25/12',67],['05/30/12',233],['06/27/12',300],['07/30/12',300],['08/30/12',133],['09/29/12',133],['11/30/12',0],['12/31/12',67],['01/30/13',67],['02/28/13',200],['07/30/13',200],['08/28/13',200],['02/23/14',400],['04/05/14',367],['04/27/14',233],['09/19/14',67],['10/24/14',0],['11/14/14',0],['01/29/15',33],['02/26/15',200],['03/17/15',33],['04/23/15',67],['08/25/15',100],['10/13/15',633],['10/13/15',633],['11/05/15',367]],false);var >> options = { title : '3M E coli value by Event Date', vAxis: {title: '3M E >> coli'}, hAxis: {title: 'Event Date'}, seriesType: 'graph', series: {3: >> {type: 'area'}} }; var chart = new >> google.visualization.ComboChart(document.getElementById('chart_line')); >> chart.draw(data, options); } </script> >> >> On Wed, Jun 17, 2020 at 3:15 PM 'Daniel LaLiberte' via Google >> Visualization API <[email protected]> wrote: >> >>> Hi Deepak, >>> >>> I bet you are using the old jsapi loader, and possibly not using >>> google.setOnLoadCallback. If so, see the instructions on updating how you >>> load the visualization library at: >>> https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code >>> >>> If this doesn't help, please post more details about how you are loading >>> the library. >>> >>> On Wed, Jun 17, 2020 at 11:58 AM Deepak Alexander < >>> [email protected]> wrote: >>> >>>> Team, >>>> >>>> I started getting this java script error while i am trying to load the >>>> chart. It was always working but recently it stopped working. Does anyone >>>> have any idea about this issue with Google charts. >>>> >>>> -- >>>> 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 view this discussion on the web visit >>>> https://groups.google.com/d/msgid/google-visualization-api/77c7b105-608c-490b-b06a-b0eaa37cef5ao%40googlegroups.com >>>> <https://groups.google.com/d/msgid/google-visualization-api/77c7b105-608c-490b-b06a-b0eaa37cef5ao%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >>> [email protected] <[email protected]> Cambridge 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 view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNmvAcN5LYvus-P01WN2fHnKuUuHyM4EYqoeSA%3D392sNw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNmvAcN5LYvus-P01WN2fHnKuUuHyM4EYqoeSA%3D392sNw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> *Thanks & Regards,* >> >> *Deepak Alexander* >> >> "Commit to the LORD whatever you do, and your plans will succeed" >> *Proverbs 16:3* >> >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/google-visualization-api/CAMfFaNwoTHEj3uQvrzhOXvBABdHww1kVC2w3kzuEzzuq0EhF5Q%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-visualization-api/CAMfFaNwoTHEj3uQvrzhOXvBABdHww1kVC2w3kzuEzzuq0EhF5Q%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> > [email protected] <[email protected]> Cambridge 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN9u9Nz7s10jvdhjEK1ZuAxxrQuUYmSe5Awr633CA5Ytg%40mail.gmail.com > <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN9u9Nz7s10jvdhjEK1ZuAxxrQuUYmSe5Awr633CA5Ytg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- *Thanks & Regards,* *Deepak Alexander* "Commit to the LORD whatever you do, and your plans will succeed" *Proverbs 16:3* -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAMfFaNyPuZquFaQdVTz%3D8h-U2Fypt4fpnCNz_byWbTP%3D2fOTLA%40mail.gmail.com.
