Welcome Guest Search | Active Topics |

Bubble Chart Draw Order
msbair
#1 Posted : Wednesday, June 27, 2012 1:59:16 PM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 6/12/2012(UTC)
Posts: 15

Thanks: 4 times
Was thanked: 0 time(s) in 0 post(s)
Does anyone know how to specify bubble draw order? I would like to draw bubbles largest to smallest (so the smallest bubbles are on top of larger bubbles). To further complicate things, the bubble chart would have multiple series.

Series Size
Series1: 1 4 6
Series2: 3 5 8
Series3: 2 7 9

Draw order should be: 9,8,7,6,5,4,3,2,1
Dragan
#2 Posted : Thursday, June 28, 2012 7:03:06 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)
Hi,

Current jqChart API doesn’t support this functionality.

I think with small changes to the chart this can be achieved. If you want I’ll send you a custom version, which supports your requirement.
Best Regards,
Dragan Matek
jqChart Inc.
msbair
#3 Posted : Thursday, June 28, 2012 7:41:31 AM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 6/12/2012(UTC)
Posts: 15

Thanks: 4 times
Was thanked: 0 time(s) in 0 post(s)
What small changes would be required? Small changes to the way I use the existing library, or you'd have to make small changes and update the product?

I think the draw order should default to largest-to-smallest. Perhaps this functionality should be built into the product?

Thanks for all your help, Dragan.

Dragan
#4 Posted : Thursday, June 28, 2012 7:43:57 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)
We’ll have to make small changes and update our chart library.
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
msbair on 7/6/2012(UTC)
msbair
#5 Posted : Friday, July 6, 2012 8:19:15 AM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 6/12/2012(UTC)
Posts: 15

Thanks: 4 times
Was thanked: 0 time(s) in 0 post(s)
Also on this same theme:

In addition to the draw order being important, is there a way to modify the data highlight region? When the mouse cursor reaches a certain buffer zone around a bubble, the data highlight event is raised even though the mouse is not actually over/touching a bubble. Is it possible to modify this functionality such that the data highlight event only occurs once the cursor is actually over/touching a bubble?

Thanks,
Dragan
#6 Posted : Friday, July 6, 2012 8:24:50 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)
You can do this with:

Code:
tooltips: { snapArea: 0 },

by default the snapArea is 25 pixels.

http://www.jqchart.com/documentation/userguide/default.aspx#!Tooltips
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
msbair on 7/6/2012(UTC)
msbair
#7 Posted : Friday, July 6, 2012 8:47:50 AM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 6/12/2012(UTC)
Posts: 15

Thanks: 4 times
Was thanked: 0 time(s) in 0 post(s)
Thank you for the above.

Perhaps draw order will fix the following: when I click a bubble, the data item returned is not the highlighted target bubble, but could be another bubble below/above. Is that the expected behavior?

Thanks,
Dragan
#8 Posted : Friday, July 6, 2012 9:09:08 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)
This isn't an expected behavior. We're checking it now. I'll let you know when we find the exact issue.

Thanks for reporting this.
Best Regards,
Dragan Matek
jqChart Inc.
Dragan
#9 Posted : Sunday, July 8, 2012 9:13:06 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)
I've sent you an email with a fixed version, as well as the ability to customize the draw order.

All of this will be included in next jqChart (version 3.5.0.0) release.
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
msbair on 7/9/2012(UTC)
Users browsing this topic
Guest (3)
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.142 seconds.