rafe.lee

Alpha disappear after hover on interactive legend at mscombidy2d chart

Recommended Posts

Hi Lee,

 

This attribute "plotHighlightEffect" lets you enable/disable the highlight effect, in the form of a fadeout, for the data plots corresponding to a legend item. When this attribute is enabled and the mouse pointer is hovered over a legend item label, plots belonging to the other data series fadeout, by reducing their opacity.

The fadeout effect can be customized by specifying the fadeout color and opacity using the color and alpha attributes.

Eg. fadeout|color=#ff0000, alpha=60

This is the intended behavior of the mentioned attribute. For reference, you can check the attribute list :

https://www.fusioncharts.com/dev/chart-attributes/msline

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Thanks for reply.

But I think it's not obvious that "plotHighlightEffect" affect after mouse pointer escaped legend area.

Also, without alpha option at "plotHighlightEffect", alpha property of data is gone.

Alpha property at data is it's own property of data that should be shown properly and "plotHighlightEffect" is a option just for easier use.

So, there is no way to keep alpha when using "plotHighlightEffect"?

Edited by rafe.lee

Share this post


Link to post
Share on other sites

Hi Lee,

 

As mentioned the "plotHighlightEffect" attribute lets you enable/disable the highlight effect, in the form of a fadeout, for the data plots belonging to the other  data series to fadeout by reducing their opacity.

This opacity could be set using the "alpha" along with the "color" in the "plotHighlightEffect" attribute. By default the opacity is set to "50".

Now, if you do not want the "plotHighlightEffect" to reduce the opacity of the other dataseries plots, then set "alpha" to "100"(or the same as you have set for the data objects) as below :
plotHighlightEffect: "fadeout|color=#7f7f7f, alpha=100"

And, if you do now want to set the color for the other dataseries on hovering a legend, then do not set the "color" within the "plotHighlightEffect attribute as below :
plotHighlightEffect: "fadeout"

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now