Hi Rich,
Please provide more information on how you configure the chart - whether this is a categorical or date time scale, code used to configure the control etc. In the case of a categorical scale you can switch the labels to XML formatted text and insert <br/> like you mentioned:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.DataLabelStyle.Visible = false;
bar.Values.Add(10);
bar.Values.Add(20);
chart.Series.Add(bar);
NOrdinalScaleConfigurator ordinalScale = (NOrdinalScaleConfigurator)chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator;
ordinalScale.LabelStyle.TextStyle.TextFormat = TextFormat.XML;
ordinalScale.AutoLabels = false;
ordinalScale.Labels.Add("Q3<br/>2017");
ordinalScale.Labels.Add("Q4<br/>2017");
For date time axes the code is similar:
NChart chart = nChartControl1.Charts[0];
NLineSeries line = new NLineSeries();
line.DataLabelStyle.Visible = false;
line.UseXValues = true;
Random rand = new Random();
DateTime dt = DateTime.Now;
for (int i = 0; i < 10; i++)
{
line.Values.Add(10);
line.XValues.Add(dt.ToOADate());
dt = dt.AddMonths(3);
}
chart.Series.Add(line);
NDateTimeScaleConfigurator dateTimeScale = new NDateTimeScaleConfigurator();
dateTimeScale.LabelStyle.TextStyle.TextFormat = TextFormat.XML;
dateTimeScale.LabelValueFormatter = new NDateTimeValueFormatter("#Q<br/>yy");
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = dateTimeScale;
dateTimeScale.MajorTickMode = MajorTickMode.CustomStep;
dateTimeScale.EnableUnitSensitiveFormatting = false;
dateTimeScale.CustomStep = new NDateTimeSpan(3, NDateTimeUnit.Month);
Hope this helps - let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team