Hide value from Axis


Author
Message
Malcolm Macleod
Malcolm Macleod
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1

Hi All

I am using a radar chart and to make it display better have set the range from -20 to 100.  However, I do not want the value of -20 to apear on my chart and was wondering if anyone knew how to hide a particular value from the axis?

Thanks


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 Malcolm,

You can use custom code to turn off the first label on the radar axes. The following code snippet shows how to do this:

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)
  {
   NRadarChart chart = (NRadarChart)context.Document.Charts[0];
   
   for (int i = 0; i < chart.Axes.Count; i++)
   {
    NRadarAxis axis = (NRadarAxis)chart.Axes[i];
    
    NStandardScaleConfigurator scale = axis.ScaleConfigurator as NStandardScaleConfigurator;
    if (scale != null)
    {
     scale.DisplayFirstLabel = false;
    }
   }
  }
 }
}

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



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search