pkdevbox / axiis

Automatically exported from code.google.com/p/axiis
0 stars 0 forks source link

Feature Request: exposed fill properties, best practice to add a custom legend for line series group #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

1. I'm building a legend for the chart lineSeriesGroup
2. I'd like the ability to get the gradientFill instances inan array, so I
can use those properties to fill my rectangles for my legend
3. Also, it would be nice, If it's possbile to share mouseEvents from the
series->legend, so when on a mouseOver happens on either the legend, or the
chart, the respective legend is also, highlighted and in sync.

If line series group uses halo by default, why do the colors look different
on the chart, they don't look like halo, or maybe they are mixed with
another color? It's really difficult, for me to get the fill to match the
chart exactly for my legend. 

I'll be happy to share this code, would this be something useful to the
project? It's not very complicated, just an repeater of filled rectangles.

Original issue reported on code.google.com by patrickl...@gmail.com on 13 Apr 2010 at 6:05

Attachments:

GoogleCodeExporter commented 9 years ago
I see that fills is exposed on the lineGroup, however if I try to iterate 
through the
fills and apply them to my legend, the color is always gray.

    private function getColor(iteration:int, obj:Object):Number
        {
            return areaPalette.colors[iteration];
        }

The above gives me all black fills, not sure if I am using the api wrong, but 
if I
copy out the halo theme, and then iterate over the that array with my repeater, 
I get
the fills, I just can't seem to get the fills working correctly.  

I am probably doing this wrong.

Original comment by patrickl...@gmail.com on 14 Apr 2010 at 3:58