Profile Picture

Pie chart Spyder labels lenth control

Posted By Amendra Kodituwakku 12 Years Ago
Author
Message
Amendra Kodituwakku
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 0, Visits: 1

Hi,

Is it possible to control the length of the Data label pointers in a Pie chart with Spider labels. I tried changing the following - under data labels, Arrow length and Pointer length, didn't seem to change anything. I have uploaded a sample.

AK



Attachments
TestNevron_IN9.jpg (350 views, 85.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 5 hours ago
Posts: 3,054, Visits: 4,009

Hi Amendra,

You can modify the pie connector length though code:

using System;
using System.Drawing;
using Nevron.GraphicsCore;
using Nevron.Chart;
using Nevron.ReportingServices;

namespace MyNamespace
{
 /// <summary>
 /// Sample class
 /// </summary>
 public class MyClass
 {
  /// <summary>
  /// Main entry point
  /// </summary>
  /// <param name="context"></param>
  public static void RSMain(NRSChartCodeContext context)
  {
   if (context.Document.Charts.Count == 0)
    return;
    
   NChart chart = context.Document.Charts[0];
   
   NPieSeries pieSeries = chart.Series[0] as NPieSeries;
   
   if (pieSeries != null)
   {
    pieSeries.ConnectorLength = new NLength(10);
   }
  }
 }
}

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



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic