I am not sure what is the problem is.
But I have checked several computers that are windows / macOS and Chrome /
other browsers without add-ons and reinstalling,
and I think the Chrome version 59.0.3071.68 has a problem about this error.
Because there is no error at Chrome 60 (Dev ver.) and 61(Canary ver.).
Now, I am waiting for updating Chrome 60 stable version soon.
2017년 6월 13일 화요일 오후 6시 17분 52초 UTC+9, Shinwoo Kang 님의 말:
>
> Hi,
>
> I am using google visualization for various charts.
>
> I tried to draw piecharts with array data but I got the error when I use
> draw().
> The problem is that I got the error randomly and rarely even though the
> array data is same.
>
> Is there someone who have any ideas about it?
>
> Below is my work.
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------
> var pieDataArr = [["test1", 2], ["test2", 1], ["test3", 1], ["test4", 1],
> ["test5", 0]];
>
> var data = google.visualization.arrayToDataTable(pieDataArr);
>
>
> var options = {
> title : titleOption,
> titleTextStyle : {
> fontSize : 15
> },
> width : chartWidth,
> height : 400,
> chartArea:{
> top : 20,
> width : chartWidth*0.6,
> height : 360
> },
> bar : {
> groupWidth : 25
> },
> hAxis : {
> maxValue : 100,
> viewWindow : {
> max : 100
> }
> },
> vAxis : {
> textStyle : {
> fontSize : 12
> }
> },
> 'backgroundColor' : '#f0f3f7',
> legend:{
> position : 'bottom'
> },
> pieSliceTextStyle : {
> color : '#2c3520'
> },
> pieHole : 0.4,
> colors :colorMap
> };
>
>
> var chart = new google.visualization.ChartWrapper({
> chartType : 'PieChart',
> dataTable : data,
> options : options,
> containerId : chartId_
> });
>
>
> chart.draw();
>
>
>
--
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/d08ec265-d586-47cf-b1c4-08e1c40128a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.