Hi.
I am trying to get my x-Axis such that it skips a few days on the labels, such as on RadHTMLChart demo page. Please advise on how I can achieve this. Below is a snippet of my code currently.
I get the data from a list containing values and dates.
Any and all help will be greatly appreciated.
Kind regards.
Leon
I am trying to get my x-Axis such that it skips a few days on the labels, such as on RadHTMLChart demo page. Please advise on how I can achieve this. Below is a snippet of my code currently.
I get the data from a list containing values and dates.
chrtPerformance.PlotArea.Series.Clear();
chrtPerformance.PlotArea.XAxis.Type = AxisType.Date;
chrtPerformance.PlotArea.XAxis.BaseUnit = DateTimeBaseUnit.Months;
chrtPerformance.PlotArea.XAxis.LabelsAppearance.DataFormatString = "m";
chrtPerformance.PlotArea.XAxis.LabelsAppearance.RotationAngle = 270;
chrtPerformance.PlotArea.XAxis.DataLabelsField = "BatchDate";
string type = Settings[NTConstants.CONST_CHART_TYPE].ToString();
if (type == "Area")
{
var seriesA = new AreaSeries();
var seriesB = new AreaSeries();
seriesA.DataFieldY = "CashValue";
seriesB.DataFieldY = "InstrumentValue";
seriesA.TooltipsAppearance.ClientTemplate = "#=dataItem.CashValue#, Cash Value";
seriesB.TooltipsAppearance.ClientTemplate = "#=dataItem.InstrumentValue#, Instrument Value, #=dataItem.BatchDate#";
seriesA.LabelsAppearance.Visible = false;
seriesB.LabelsAppearance.Visible = false;
seriesA.MissingValues = MissingValuesBehavior.Interpolate;
seriesB.MissingValues = MissingValuesBehavior.Interpolate;
chrtPerformance.PlotArea.Series.Add(seriesA);
chrtPerformance.PlotArea.Series.Add(seriesB);
}
Any and all help will be greatly appreciated.
Kind regards.
Leon