I'm trying to retrieve the colors in a LinearRandom color model of a chart (or any color model for that matter), but to do this I need to get access to the ChartLayer so I can call ChartLayer.ChartCore.ChartColorModel.GetPalette();
The chart layer is not accessible from the ultraChart.Layer collection (only custom layers), and ChartCore is a private member of the chart so I can't get access to that.
Thanks for any help!
You can use FillSceneGraph event (in version 7.3 and later) to get access to the e.ChartCore.ChartColorModel.GetPalette() method. Normally this wouldn't be possible, as we don't expose ChartCore, unless you're using a custom layer. In that case you just need to create a public property for it (you can follow the example in the following KB):http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5432