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
320
Composite Data Chart
posted

I have a composite data chart see below

the problem that i am having is that the column data is not displaying in alternate colours for each month. The data that the compisite chart is displaying is this year and last year data.The legends are bound to the line data. the colour model is custom linear and i have a custom pallet of

chart.ColorModel.CustomPalette = New Color() {Color.CornflowerBlue, Color.LightGreen}

All help is appreciated as this has been driving me nuts for a while now.

Parents
  • 26458
    Verified Answer
    Offline posted

    I would suggest using a CustomSkin color model. Define 2 colors and set ApplyRowWise to true or false, depending on how you've data bound your chart.

     

     

     

    myChart.ColorModel.ModelStyle =

    ColorModels.CustomSkin;
    myChart.ColorModel.Skin.PEs.Add(
    new PaintElement(Color.Blue));
    myChart.ColorModel.Skin.PEs.Add(
    new PaintElement(Color.Green));
    myChart.ColorModel.Skin.ApplyRowWise =
    true; (or false)

     

Reply Children
No Data