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
240
Highlight boxes in tree map
posted

Hi Matt,

Please send some code snippets to highlight some of the the tree map boxes.

We have a requirement to highlight some boxes.

Regards,Shiju

Parents
No Data
Reply
  • 17605
    Suggested Answer
    posted

    You can try using something like:

    this.ultraChart1.ChartDrawItem += new Infragistics.UltraChart.Shared.Events.ChartDrawItemEventHandler(ultraChart1_ChartDrawItem);

    void ultraChart1_ChartDrawItem(object sender, Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e)

            {

                Box box = e.Primitive as Box;

     

                if (box != null && box.Value != null)

                {

                    double value = Convert.ToDouble(box.Value);

     

                    if (value < 40)

                    {

                        box.PE = new PaintElement(Color.Red);

                    }

                }

            }

Children
No Data