I just noticed in your code you have ...

  *$.each(data.statewise*,  function(key, value){
if (value.state === "Total") {

 var data2 = ...  )

Which I would guess is going to repeat the assignment of data2 multiple
times.  That's maybe not what you intended, or if it is, you maybe want to
generate multiple charts.   You'll probably need to find a javascript
programmer who can help you write the necessary code to fit your needs.  I
have too many things I need to do so I can't really help you further.


On Thu, Apr 16, 2020 at 1:15 PM Shivan Singh <[email protected]> wrote:

> Giving Error :(
> Error:
> Uncaught ReferenceError: data2 is not defined
>     at innerDrawChart (covid.js:17)
>     at Object.<anonymous> (covid.js:12)
>     at Function.each (VM12457 jquery.min.js:2)
>     at Object.success (covid.js:6)
>     at c (VM12457 jquery.min.js:2)
>     at Object.fireWith [as resolveWith] (VM12457 jquery.min.js:2)
>     at l (VM12457 jquery.min.js:2)
>     at XMLHttpRequest.<anonymous> (VM12457 jquery.min.js:2)
>
>>
>> --
> 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/e685d413-4485-461d-89e3-8f36d163c2dc%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/e685d413-4485-461d-89e3-8f36d163c2dc%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/CAOtcSJMdRN1r57qu_cvQd5wWmBOSJO5HH%2BrNMXzAQFbD1t4xyA%40mail.gmail.com.

Reply via email to