Pie Chart - Label Mode


Author
Message
Jerry Jacob
Jerry Jacob
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 15, Visits: 78
Is there a way to change the labelmode based on the data?

Something along the lines of

     
if (pieSeries.Values[i] > .1){
        //I want to change the labelMode of this value to Center on the pie chart
        pieSeries.LabelMode = PieLabelMode.Center;
       }else {
        //I want to change the labelMode of this value to SpiderNoOverlap on the pie chart
        pieSeries.LabelMode = PieLabelMode.SpiderNoOverlap;
       }


Also how can I adjust the lengths of the lines for SpiderNoOverlap.  I tried the following without success.

      pieSeries.DataLabelStyle.ArrowLength = new NLength(1.0f,NRelativeUnit.ParentPercentage);
      pieSeries.DataLabelStyle.ArrowPointerLength = new NLength(1.0f,NRelativeUnit.ParentPercentage);




Replies
Jerry Jacob
Jerry Jacob
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 15, Visits: 78
I have tried

      pieSeries.LabelMode = PieLabelMode.SpiderNoOverlap;
       pieSeries.LeadOffArrowLength = new NLength(0.25f);
       pieSeries.ConnectorLength = new NLength(0.25f);

And changed the length to be different numbers but I haven't noticed any change in the size of the line.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Jerry,

Probably you started experimenting with zero value - that's why you don't see a difference - try to insert larger values - like 10, 12, 15... etc.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago
                         I understand that, I was wondering if there was a suggested...
Jerry Jacob - 10 Years Ago
Jerry Jacob - 10 Years Ago
Nevron Support - 10 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search