-
2 Attachment(s)
Time axis series
Hello, I have the following graphic, where I pass a series of dates separated every 8 days for example:
January 2, 2019 , December 26, 2018....etc.
but at the moment of visualizing the graph it returns to me of the following way
Attachment 25213
my code :
Code:
var timeAxis = new TimeAxis
{
Position = configuracion.PositionTimeAxis,
Fields = new string[] { fieldName },
DateFormat = "MMM dd",
Constrain = true,
AdjustMaximumByMajorUnit = false,
AdjustMinimumByMajorUnit = false,
Title = configuracion.ConfiguracionCharts.CategoryLabel,
AutoDataBind = true,
Label = new AxisLabel { Rotate = new RotateAttribute { Degrees = configuracion.CategoryRotacion } }
};
if (dataItems.Count > 0)
{
//timeAxis.FromDate = dataItems.Min(min => min.CategoryText);
//timeAxis.ToDate = dataItems.Max(max => max.CategoryText);
}
viewChart.Axes.Add(timeAxis);
i want something like this:
Attachment 25214
-
Hello @opkills!
Isn't it that you are adding more data in a same chart than it could possibly display for the chart's area?..
If you are providing data for something different than one entry per 8 day time span, you may want to specify MajorTickSteps, for instance. Or just actually provide the data in 8 days step. At least I am not sure where the minor tick steps are coming from your first screenshot.
Hope this helps!