Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to get the color of clicked legend in chart?

$
0
0
Hi Team,

Hi Team,

We are currently using:-
BuildDate Wed Mar 05 15:52:00 IST 2014
Version 4.1p
SCVersionNumber v9.1p_2014-03-05

I am working on chart drill down functionality and I have achieved it as well but I am unable to set the color of chart as per the drilled down legend.

Is it possible to get the legend color when clicked on any legend in chart so that I can set the color of drilled down chart that was previously shown in legend?

Here is my code by which I can get the title of legend but how to get its color?
Code:

    this.addLegendClickHandler(new LegendClickHandler() {

        @Override
        public void onLegendClick(LegendClickEvent event) {
            FacetValue facetValue = event.getFacetValue();
            if (facetValue != null) {
                String drilledLegend = facetValue.getTitle());
                // How to get the color of clicked legend?
                ...
            }
        }
    });

Is there any workaround?

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles