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
20
DataItemOver w/Others slice in 3D Mode Pie Chart
posted

I have a total of 6 pie chart slices

When I set my OthersCategoryPercent = 3,  My Pie Chart Control is showing 3 pie Chart slices (including Others), 

When I hover mouse over some of the slices (for Instance "Others")  DataItemOver  event is fired and its e.DataRow gives me Index = 5 which is legitamate when OthersCategoryPercent = 0, however this slice is not even visible ( it is within Others)

Any way to fix that?

Parents
  • 28496
    Offline posted
    private void UltraChart1_DataItemOver(object sender, ChartDataEventArgs e)

    {

    bool isOthersWedge =

    e.Primitive != null &&

    e.Primitive.Tags != null &&

    e.Primitive.Tags.ContainsKey("OthersList");

    if (isOthersWedge)

    {

    Console.WriteLine("others");

    }

    else

    {

    Console.WriteLine("not others");

    }

    }

Reply Children