Jan 07, 2019, 2:23 PM
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
my code :
January 2, 2019 , December 26, 2018....etc.
but at the moment of visualizing the graph it returns to me of the following way
my 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:
Last edited by geoffrey.mcgill; Jan 07, 2019 at 6:00 PM.