Hello Experts,
Problem: X-
Axis Labels have different font size for multiple charts with linked X-
Axis (Chart.Fit2D
AxisContent = true)
I have alligned 3 charts next to each other:
=> I would like to have X
Axis Label font size for middle and left Chart same as for the first Chart ("2017_02")
Due to some automatic size setting the middle and left Chart X
Axis Label size is much smaller.
I use the following settings for the charts:
for (i = 0; i < iChartCount; i++) {
_oChart[i].Fit2D
AxisContent = true;
...
_oChart[i].
Axis(Standard
Axis.PrimaryX).ScaleConfigurator.
LabelFitModes = new
LabelFitMode[]{
LabelFitMode.Rotate90};
}
....
//----- link axes
for (i = 0; i < iChartCount; i++) {
for (int iSlave = 0; iSlave < iChartCount; iSlave++) {
if (iSlave != i) {
_oChart[i].Chart.
Axis(Standard
Axis.PrimaryX).Slaves.Add(_oChart[iSlave].Chart.
Axis(Standard
Axis.PrimaryX));
_oChart[i].Chart.
Axis(Standard
Axis.PrimaryY).Slaves.Add(_oChart[iSlave].Chart.
Axis(Standard
Axis.PrimaryY));
}
}
}
// Refresh
_NevronChart.document.Calculate();
_NevronChart.document.RecalcLayout(_NevronChart.View.Context);
_NevronChart.Refresh();
// test
NLinearScaleConfigurator oXScale = (NLinearScaleConfigurator)_NevronChart.Charts[0].
Axis(Standard
Axis.PrimaryX).ScaleConfigurator;
NTextStyle hTextStyle = oXScale.
LabelStyle.TextStyle;
string sFontSize = hTextStyle.FontStyle.EmSize.ToString(); // always 9pt for all charts
==>
sFontSize is the same for all 3 Charts - but obviously the displayed size is not the same
So how do I force the middle and left Chart to have the same X
Axis Label size like the first left hand Chart ?
Thanks for help,
Joern