Hi,
I am using angular-google-chart to draw multiple Pie charts on a page and
was getting same Error: <path> attribute d: Expected number,
"MNaN,NaNLNaN,NaNA…" at the line "c.setAttribute("d", a.join(""))" in
Visualization api's js.
In the first load of the page all Pie charts would display properly, but
when tried to reload them with different data the above error would throw
several times and some charts would not load whereas some would load
partially.
When I tried checking my Chrome version, it got updated by itself to "*Version
59.0.3071.109 (Official Build) (64-bit)*" and the problem was resolved.
On Tuesday, 13 June 2017 14:47:52 UTC+5:30, Shinwoo Kang wrote:
>
> 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/e28d5b84-ffdb-4576-bb5a-4377e9185043%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.