I want to hide chart labels when there is no related point on chart. How can i do this? On the pictures below you can see a series of two points with 2 min interval. I want to hide middle label, since there is no related data point. CustomDrawAxisLabel
event is not working since for some reason it fires for each label. Here is what i am trying to do inside of this event:
if (axis is AxisX || axis is AxisX3D || axis is RadarAxisX)
{
DateTime dateTime = (DateTime)e.Item.AxisValue;
if (dateTime == null)
{
e.Item.Text = "";
}
It's not working since e.Item.AxisValue
returns me current axis label value (including middle one i want to hide), not related chart point. How can i access chart data inside this event by axis value?
Actual:
Desired: