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
145
Extending IgDataChart palette
posted

Hi, 

I am facing a problem with IgDataChart that re-uses the brush colors if more than 10 series are added. I tried in the  initialization to execute the following javascript code: 

  var brushes = ["aqua", "brown", "violet", "chocolate", "coral", "crimson", "red", "gold", "purple", "green", "turquoise", "pink", "yellow"];
   $("#chart").igDataChart({
                isHorizontalZoomEnabled: true,
                isVerticalZoomEnabled: true,
                windowResponse: "immediate",
                brushes: brushes,
                width: "100%",
                axes: [
                    {
                        type: "numericX",
                        name: "xAxis",
                        stroke: "black",
                        strokeThickness: 1,
                        LabelTopMargin: 10,
                        minorStroke: "WhiteSmoke",
                        labelAngle: 0,
                        labelExtent: 40,
                        labelTextColor: "black"
     
                    }, {
                        type: "numericY",
                        name: "yAxis",
                        stroke: "black",
                        strokeThickness: 1,
                        majorStroke: "lightGrey",
                        minorStroke: "WhiteSmoke",
                        labelExtent: 60,
                        labelTextColor: "black"
               
                    }
            ]
         });
           

but igDataChart does not use the new brush colors. Is there an extra step to accomplish? 

I am using IgniteUI 20.2.6.

Parents
No Data
Reply
  • 720
    Verified Answer
    Offline posted

    Hello Martijn,

    Thank you for contacting Infragistics Support!

    I believe that you will find the following sample I haver prepared for you very helpful. As you can observe using the IgniteUI 20.2.6 and the brushes array provided by you the bar and the column series are picking the provided colors correctly.

    If this sample is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.

    Looking forward to hearing from you.

    Best Regards,
    Martin Evtimov
    Associate Software Developer
    Infragistics, Inc.

Children