Welcome to the Xceed Community Sign in | Join | Help
Community Search  

wrapping Time labels on X axis won't render

Sort Posts: Previous Next
  •  04-09-2008, 7:40 PM Post no. 6586

    wrapping Time labels on X axis won't render

    I'm trying to set the X axis of a stacked bar chart to display time values using database data that only includes time, no date. If my data crosses a 24 hour boundary the control does not render the labels and/or the data correctly. Depending on what settings I pick I can sometimes get it to render all of the data but the axis labels (major ticks) won't line up with the data and will only go as far as the point in time where there starts to be "duplicate" times from the next 24 hour period. With some settings it will not render the data at all.

    I do not have DateTime data coming from the database, only Time data.
    Any suggestions on how to handle this or correct the component's confusion?
    What are the correct settings to use?
  •  04-09-2008, 9:58 PM Post no. 6587 in reply to 6586

    Re: wrapping Time labels on X axis won't render

    I did a test and I get screwed up behaviour even with full date time data.
    If I set "axis.DateTimeScale.AutoLabels = true;" then all of my labels are the default "12:00 AM" whereas if I set "axis.DateTimeScale.AutoLabels = false;" then it uses my labels from the "axis.Labels" array list but it only uses the first few that fit on the image; it doesn't use the correct ones from corresponding points that line up with the data, nor does it line up the few it used with the data they correspond to.

    So, how do I get the X Axis labels/ticks to line up with the corresponding data and how do I get it to use the appropriate available values? I have one time record for each stacked bar and I need them to line up.

    Thank-you.
  •  04-16-2008, 6:33 PM Post no. 11528 in reply to 6587

    Re: wrapping Time labels on X axis won't render

    Can anyone help?  An example that does this would be great, none of the basic examples provided in the install address this.

  •  04-18-2008, 3:30 PM Post no. 11606 in reply to 11528

    Re: wrapping Time labels on X axis won't render

    The problem here is that you cannot specify X values with the BarSeries (this is a limitation of the product). You will need to use a ShapeSeries instead.

     After 24 hours, do you want to start adding data to a new series? Or is it suppose to continue after? Or you want it to erase the last 24 hours and replace it with new data?


    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.