Time axis series

  1. #1

    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

    Click image for larger version. 

Name:	lineChart.PNG 
Views:	62 
Size:	11.4 KB 
ID:	25213

    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:

    Click image for larger version. 

Name:	linechart2.PNG 
Views:	67 
Size:	6.7 KB 
ID:	25214
    Last edited by geoffrey.mcgill; Jan 07, 2019 at 6:00 PM.
  2. #2
    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!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] time axis and bar chart bug
    By mirwais in forum 4.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 14, 2017, 1:21 PM
  2. [CLOSED] Line Series Chart with null values & axis scaling
    By tylert in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 25, 2014, 6:57 AM
  3. Replies: 0
    Last Post: Sep 23, 2014, 8:55 AM
  4. Replies: 5
    Last Post: Feb 17, 2013, 12:51 AM
  5. Replies: 3
    Last Post: Jul 13, 2012, 10:28 AM

Tags for this Thread

Posting Permissions