Welcome Guest Search | Active Topics |

Line Chart Data Highlight
msbair
#1 Posted : Friday, August 17, 2012 12:52:19 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)
When highlighting a line chart's data using the following:

$('#jqChart').jqChart('highlightData', dataToHighlight);

any data point with an equal value is highlighted.

So, if you have the following data:

0, 1, 3, 0, 7

and you want to highlight the first data point (0), so you push that value (0) into dataToHighlight, when the chart highlights, both the first and fourth data points (both with 0 value) highlight.

Is there a method to uniquely identify data points for highlighting?
Dragan
#2 Posted : Friday, August 17, 2012 12:59:51 PM(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,

Can you provide us a little more info about this? Is it possible to send us your full code?

Best Regards,
Dragan Matek
jqChart Inc.
msbair
#3 Posted : Friday, August 17, 2012 1:30:35 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)
Unfortunately, my current example is very complex and not easily broken down. But, if you create a simple line chart with some duplicate values, and then ask the chart to highlight a value (which has duplicates), all data items with that value will highlight instead of one particular data point of interest.
msbair
#4 Posted : Friday, August 17, 2012 1:36:38 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)
Maybe I figured out a way to make this work.

Never mind... for now.

Thanks,
Users browsing this topic
Guest (2)
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.080 seconds.