How to make end labels always visible?
Posted: Wed Jun 27, 2018 6:49 am
How to make end labels always visible in ViewXY XAxes and YAxes?
A place for LightningChart Ultimate related Q&A's.
https://lightningchart.com/forum/
Code: Select all
//Set custom ticks for X axis,
int[] aTickValues = new int[] { 25, 500, 1000, 1500, 2000, 2500, 3025 };
for (int i=0; i<aTickValues.Length; i++)
{
CustomAxisTick cTick = new CustomAxisTick(axisX, aTickValues[i], aTickValues[i].ToString(), 6, true, axisX.MajorDivTickStyle.Color, CustomTickStyle.TickAndGrid);
axisX.CustomTicks.Add(cTick);
}
//Allow showing the custom tick strings
axisX.CustomTicksEnabled = true;
axisX.InvalidateCustomTicks();