this.stringify is not a function

232 views
Skip to first unread message

abhishek praharaj

unread,
Aug 19, 2015, 3:07:55 AM8/19/15
to Google Visualization API
Hi Team,

We implemented a google chart api in one of the systems and it was working fine till recently we started getting the error "Object doesn't support property or method 'stringify'". Was there any recent change in the jsapi ?

Thanks,


Daniel LaLiberte

unread,
Aug 19, 2015, 8:14:29 AM8/19/15
to Google Visualization API
There was a change recently, as announced in this forum here: https://groups.google.com/forum/#!topic/google-visualization-api/XxP1zYbWQRE

Can you give more details about how you got that error message?  Post enough code to reproduce the problem, or better, point to your page, or create an example on jsfiddle.  Thanks.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/08b17c49-041f-45c4-a199-6feacf1a6cf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

sir.joh...@gmail.com

unread,
Aug 19, 2015, 3:55:50 PM8/19/15
to Google Visualization API
Hey Daniel,

I've similar problem. I face with the error "this.stringify is not a function" . I share the code below. Regards.

<!-- html body -->

    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>

<div id="chart_data" style="width: 100%; height: 330px;"></div>   

    <script>

    try{
   
        google.load("visualization", "1", {packages:["corechart","line"]});
   
        function drawChart() {
       
            var myData = google.visualization.arrayToDataTable([
                ['Hour', 'x', 'y']
,['9', 230, 249],['10', 375, 407],['11', 467, 486],['12', 301, 347],['13', 325, 380],['14', 678, 827],['15', 786, 770],['16', 0, 0]

            ]);

            var data_options = {
              title: 'Data'
              ,vAxis: {title: 'count'}
              ,hAxis: {title: 'hour'}
              ,width: ($(window).width()*50)/100
              ,height: 330
              ,legend: { position: 'bottom' }
            };
           
            var chart2 = new google.visualization.LineChart(document.getElementById('chart_data'));
           
            chart2.draw(myData, data_options);
           
      }

        //-------------------------------------------
       
        $(window).resize(function(){
            drawChart();
        });
       
        $(document).ready(function(){
            drawChart();
        });
    }
    catch(err){
        alert(err);
    }

    </script>

<!-- html body end -->


19 Ağustos 2015 Çarşamba 15:14:29 UTC+3 tarihinde Daniel LaLiberte yazdı:
There was a change recently, as announced in this forum here: https://groups.google.com/forum/#!topic/google-visualization-api/XxP1zYbWQRE

Can you give more details about how you got that error message?  Post enough code to reproduce the problem, or better, point to your page, or create an example on jsfiddle.  Thanks.
On Wed, Aug 19, 2015 at 3:07 AM, abhishek praharaj <abhias...@gmail.com> wrote:
Hi Team,

We implemented a google chart api in one of the systems and it was working fine till recently we started getting the error "Object doesn't support property or method 'stringify'". Was there any recent change in the jsapi ?

Thanks,


--
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 google-visualization-api+unsub...@googlegroups.com.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Aug 19, 2015, 4:13:33 PM8/19/15
to Google Visualization API
Hi sir.john.casey,

Starting from your code, it seems to be working fine with a few modifications: https://jsfiddle.net/dlaliberte/xzsf9xzj/

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages