Welcome Guest Search | Active Topics |

How can I hide or show lines(columns) by click the legend?
Darren
#1 Posted : Sunday, December 1, 2013 10:27:54 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/1/2013(UTC)
Posts: 2

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

Hi,

I want to hide selected line by click the legend, how can I do that?
Dragan
#2 Posted : Monday, December 2, 2013 8:49:55 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,

This feature is planned for the next release.
Best Regards,
Dragan Matek
jqChart Inc.
Darren
#3 Posted : Wednesday, December 4, 2013 4:23:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/1/2013(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
dragan wrote:
Hi,

This feature is planned for the next release.



Hi dragan, thank u for your reply. Now I want to implement this function, and I achieve it by listening to the legendItemDown event and rerender the chart by set the chart's specific series' data null. The problem is that once I click the legend item, the selected line hides, but the xAxis isn't just what I set, the code is:
Code:
{
                        type: 'category',
                        location: 'bottom',
                        categories: ['Cat 1', 'Cat 2', 'Cat 3', 'Cat 4', 'Cat 5', 'Cat 6']
                    }
,the issue is the Cat1 ,Cat2...shows above a number axis such as 0, 1, 2,3 ,4.
(Sorry I can't upload the snapshot), I think it may cause by the the canvas,I tried to clear the canvas before draw chart, but id doesn't work, can you help to figure this out?
Dragan
#4 Posted : Wednesday, December 4, 2013 8:57:32 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 believe we'll be able to send you tomorrow a working version of jqChart which supports this functionality.
Best Regards,
Dragan Matek
jqChart Inc.
Dragan
#5 Posted : Thursday, December 5, 2013 8:17:10 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 a working version via email.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (4)
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.094 seconds.