Welcome Guest Search | Active Topics |

Using jqChart in XUL
dg0817
#1 Posted : Tuesday, March 12, 2013 5:35:59 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/11/2013(UTC)
Posts: 13

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello,

I tried the jqChart in my XUL project, and there came up with two errors:

[JavaScript Error: "TypeError: window.G_vmlCanvasManager is undefined"]

[JavaScript Error: "TypeError: this.tooltip is undefined"]

I figured jqChart is using canvas, but XUL doesn't support canvas by default except that we can put in namespace to enable it somehow. So, does anyone have a good idea how to resolve this? I was also looking into excanvas.js, but it needs some tweaks for XUL. Thanks!
Dragan
#2 Posted : Wednesday, March 13, 2013 9:17:01 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Unfortunately we're not familiar with XUL, but in any cases a Canvas (or VML with excanvas) is required, so jqChart can be rendered.
Best Regards,
Dragan Matek
jqChart Inc.
dg0817
#3 Posted : Wednesday, March 13, 2013 10:53:05 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/11/2013(UTC)
Posts: 13

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I see. Thanks, dragan. I was thinking about modifying the source codes, but it'd be patches everywhere and messy. I will figure out a workaround. Mozilla team has been thinking about adding canvas functionality in XUL, due to complaints from developers who turned their attention to Flex and others alike because of this shortcoming. So far, XUL still stick with SVG. Anyhow, thank you for the comment!
Dragan
#4 Posted : Wednesday, March 13, 2013 11:40:24 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
It seems we should consider rendering jqChart with SVG as well.
Best Regards,
Dragan Matek
jqChart Inc.
dg0817
#5 Posted : Wednesday, March 13, 2013 12:00:19 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/11/2013(UTC)
Posts: 13

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I think SVG is outdated and too complicated, and browsers implement SVG differently. It'd be a challenge.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.087 seconds.