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);




Reply
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 Jerrry,

This obviously relates to SSRS - in this case you simply need to use the context.Document, instead of nChartControl and you'll be OK - for example:

context.document.RootPanel.ChildPanels.Clear();

However in your case we think that you should not clear the panels collection - the pie chart is already created and configured - you just need to alter some label settings so the code should simply omit the Clear line of code:

NChart1.Panels.Clear();

Hope this helps - let us know if you meet any problems or have any questions.


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