Incorrect chart rendering with RangeFilter change, <path> attribute d: Expected number, "MNaN,369.5CNaN,36…".

294 views
Skip to first unread message

Matt Long

unread,
May 6, 2016, 11:21:32 PM5/6/16
to Google Visualization API
Hi everyone,

I have a Google Chart with a RangeFilter applied. Sometimes when I change this value, the chart becomes distorted.

I've attached 3 files of the error, and 1 file of when the graph is fine. The graph can sometimes be fine for any percentage, and then when you move it up/down again, it'll break. It seems random, I just don't know.

My code seems fine, it's just this scaler part that incosistently breaks.

Any ideas?

VM342:546 Error: <path> attribute d: Expected number, "….54166666666669,NaN,143.54166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.Iaa @ VM342:908BJa @ VM342:888I.Wp @ VM342:887zOa @ VM342:1337(anonymous function) @ VM342:1324(anonymous function) @ VM342:989(anonymous function) @ VM342:360Ps @ VM342:361(anonymous function) @ VM342:360I.init @ VM342:989I.wH @ VM342:1319I.oo @ VM342:1324cG @ VM342:583I.vp @ VM342:582I.Pj @ VM342:1323I.ig @ VM342:361(anonymous function) @ VM342:361Ps @ VM342:361I.draw @ VM342:361I.draw @ VM342:1320I.UP @ VM342:376I.Gaa @ VM342:377I.draw @ VM342:368(anonymous function) @ VM342:403(anonymous function) @ VM342:252
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.Iaa @ VM342:908BJa @ VM342:888I.Wp @ VM342:887zOa @ VM342:1337(anonymous function) @ VM342:1324(anonymous function) @ VM342:989(anonymous function) @ VM342:360Ps @ VM342:361(anonymous function) @ VM342:360I.init @ VM342:989I.wH @ VM342:1319I.oo @ VM342:1324cG @ VM342:583I.vp @ VM342:582I.Pj @ VM342:1323I.ig @ VM342:361(anonymous function) @ VM342:361Ps @ VM342:361I.draw @ VM342:361I.draw @ VM342:1320I.UP @ VM342:376I.Gaa @ VM342:377I.draw @ VM342:368(anonymous function) @ VM342:403(anonymous function) @ VM342:252
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.UX @ VM342:935I.aha @ VM342:932I.ik @ VM342:1336QJ.Y6 @ VM342:781Cq @ VM342:268I.dispatchEvent @ VM342:267I.Y6 @ VM342:279
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".

Thanks! 
chart render 1.PNG
chart render 2.PNG
chart render 3.PNG
chart render 4.PNG

Daniel LaLiberte

unread,
May 7, 2016, 10:38:22 PM5/7/16
to Google Visualization API
Matt,

I can't tell from your images what might be happening, although the first one suggests that your data values are not in order.  The chart does not change the order of the rows based on the domain values, so you have to do that ahead of time.    

If that doesn't give you enough of a hint, then we really need to see a working example to tell what you mean, and to look at your data and options.


--
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 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/e29f72d9-2f0a-450d-a483-1337c3e73413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Matt Long

unread,
May 7, 2016, 11:17:52 PM5/7/16
to Google Visualization API
Hi Daniel,

Thanks a lot for the quick reply!

I can confirm that my data is ordered correctly, however there were some duplicate x entries. If there were duplicates, the graph would inconsistently break when it was redrawn (on page resize), however when I removed the duplicates my issue was solved.

Thanks!
Matt

On Sunday, May 8, 2016 at 12:38:22 PM UTC+10, Daniel LaLiberte wrote:
Matt,

I can't tell from your images what might be happening, although the first one suggests that your data values are not in order.  The chart does not change the order of the rows based on the domain values, so you have to do that ahead of time.    

If that doesn't give you enough of a hint, then we really need to see a working example to tell what you mean, and to look at your data and options.

On Fri, May 6, 2016 at 11:21 PM, Matt Long <long.m...@gmail.com> wrote:
Hi everyone,

I have a Google Chart with a RangeFilter applied. Sometimes when I change this value, the chart becomes distorted.

I've attached 3 files of the error, and 1 file of when the graph is fine. The graph can sometimes be fine for any percentage, and then when you move it up/down again, it'll break. It seems random, I just don't know.

My code seems fine, it's just this scaler part that incosistently breaks.

Any ideas?

VM342:546 Error: <path> attribute d: Expected number, "….54166666666669,NaN,143.54166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.Iaa @ VM342:908BJa @ VM342:888I.Wp @ VM342:887zOa @ VM342:1337(anonymous function) @ VM342:1324(anonymous function) @ VM342:989(anonymous function) @ VM342:360Ps @ VM342:361(anonymous function) @ VM342:360I.init @ VM342:989I.wH @ VM342:1319I.oo @ VM342:1324cG @ VM342:583I.vp @ VM342:582I.Pj @ VM342:1323I.ig @ VM342:361(anonymous function) @ VM342:361Ps @ VM342:361I.draw @ VM342:361I.draw @ VM342:1320I.UP @ VM342:376I.Gaa @ VM342:377I.draw @ VM342:368(anonymous function) @ VM342:403(anonymous function) @ VM342:252
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.Iaa @ VM342:908BJa @ VM342:888I.Wp @ VM342:887zOa @ VM342:1337(anonymous function) @ VM342:1324(anonymous function) @ VM342:989(anonymous function) @ VM342:360Ps @ VM342:361(anonymous function) @ VM342:360I.init @ VM342:989I.wH @ VM342:1319I.oo @ VM342:1324cG @ VM342:583I.vp @ VM342:582I.Pj @ VM342:1323I.ig @ VM342:361(anonymous function) @ VM342:361Ps @ VM342:361I.draw @ VM342:361I.draw @ VM342:1320I.UP @ VM342:376I.Gaa @ VM342:377I.draw @ VM342:368(anonymous function) @ VM342:403(anonymous function) @ VM342:252
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".I.LZ @ VM342:546I.Lc @ VM342:503I.Lc @ VM342:585ZJa @ VM342:919HM @ VM342:914I.UX @ VM342:935I.aha @ VM342:932I.ik @ VM342:1336QJ.Y6 @ VM342:781Cq @ VM342:268I.dispatchEvent @ VM342:267I.Y6 @ VM342:279
VM342:546 Error: <path> attribute d: Expected number, "…3.0416666666667,NaN,303.04166666…".

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.



--
Reply all
Reply to author
Forward
0 new messages