Use this property to set/get the interval between two major ticks. A value of zero enables the scale interval to be calculated automatically. The automatic scale interval calculation determines the optimal interval with easily readable numbers.
ScaleInterval is a property of Scale Class.
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
[Visual Basic] XYChartNETCtl1.NumProfiles = 2 XYChartNETCtl1.NumXScales = 1 XYChartNETCtl1.NumYScales = 1 'Set X-scale and Y-scale interval to 1.0 XYChartNETCtl1.XAxis(0).Scale.ScaleInterval = 1.0 XYChartNETCtl1.YAxis(0).Scale.ScaleInterval = 1.0 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made [C#] XYChartNETCtl1.NumProfiles = 2; XYChartNETCtl1.NumXScales = 1; XYChartNETCtl1.NumYScales = 1; //Set X-scale and Y-scale interval to 1.0 XYChartNETCtl1.get_XAxis(0).Scale.ScaleInterval = 1.0; XYChartNETCtl1.get_YAxis(0).Scale.ScaleInterval = 1.0; XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made [C++] XYChartNETCtl1->NumProfiles = 2; XYChartNETCtl1->NumXScales = 1; XYChartNETCtl1->NumYScales = 1; //Set X-scale and Y-scale interval to 1.0 XYChartNETCtl1->get_XAxis(0).Scale->ScaleInterval = 1.0; XYChartNETCtl1->get_YAxis(0).Scale->ScaleInterval = 1.0; XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
[Visual Basic] XYChartNETCtl1.NumProfiles = 2 XYChartNETCtl1.NumXScales = 1 XYChartNETCtl1.NumYScales = 1 'Set X-scale and Y-scale interval to 0.5 XYChartNETCtl1.XAxis(0).Scale.ScaleInterval = 0.5 XYChartNETCtl1.YAxis(0).Scale.ScaleInterval = 0.5 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made [C#] XYChartNETCtl1.NumProfiles = 2; XYChartNETCtl1.NumXScales = 1; XYChartNETCtl1.NumYScales = 1; //Set X-scale and Y-scale interval to 0.5 XYChartNETCtl1.get_XAxis(0).Scale.ScaleInterval = 0.5; XYChartNETCtl1.get_YAxis(0).Scale.ScaleInterval = 0.5; XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made [C++] XYChartNETCtl1->NumProfiles = 2; XYChartNETCtl1->NumXScales = 1; XYChartNETCtl1->NumYScales = 1; //Set X-scale and Y-scale interval to 0.5 XYChartNETCtl1->get_XAxis(0).Scale->ScaleInterval = 0.5; XYChartNETCtl1->get_YAxis(0).Scale->ScaleInterval = 0.5; XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made