Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
Legend color customization
posted

Hello,

For the 2D Column chart that I'm using, I've color coded the columns, so that if the Datavalue is within a certain range, then the column will be of one color otherwise another color. Since, the chart's default colors are shades of blue and green, the legend also picks up those colors.

I was wondering if there is a way to customize the legend color also depending on the charts colors.

Thanks

  • 28496
    Suggested Answer
    Offline posted

    yes, but you must manually change the PE's on the legend Box primitives using a FillSceneGraph or ChartDrawItem event handler.

    or just hide the legend and draw a new one from scratch in FillSceneGraph.