LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Chart issues

    Employee
    Posted 05-02-2013 04:02

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ThomasT

    We are using the charting functions a lot in our reports.

    There are som issues that are really anoying though.

    First of all, the colours..
    If you look at the attatched image, it is very hard to tell which legend that belongs to which data set.
    Besides that, the months does not appear as they should.
    April 2013 data is included but it�s header doesnt show... why?

    Colors.jpg

    Thank you in advance


  • 2.  RE: Chart issues

    Employee
    Posted 05-09-2013 12:55

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rpigneri

    Dear ThomasT,

    Let's deal with the date issue first. The quick answer is that you probably want to use the XAxisRange option (on the Optional tab in LAE 4.6.x and in the Parameters II tab in LAE 4.5.x). The longer answer is below.

    If you pass in the dates in a field of type date rather than in a field of type string, then the charting nodes will treat them like numbers. In the case of numbers, the charting nodes will find the largest and smallest values on your X axis and calculate how best to display the X axis labels based upon this range. Therefore, if you have values from 1 to 100, 100 might not be labeled on the X axis even if there is a value charted at 100.

    Dates are treated similarly. If your latest (or "maximum") X axis value is April 1, 2013, then there is a chance that the charting engine simply won't display that label on the X axis. If you add an extra value that ends on, say, April 15, then you might see the April 1 label. Conversely, if you translate all the dates to strings of the format you want displayed, then you will get each one displayed, but they will each be displayed in equal spacing rather than spaced based upon their point in time. The XAxisRange (and its Y axis cousin, the YAxisRange) will allow you to expand the range and thus include the label for the April 1 value on the X Axis. Be careful, however: this option also allows you to "zoom in" by choosing a range smaller than your data. If you set the XAxisRange and don't change it when your data underneath changes, then you will end up "clipping off" the end of your data.

    As for the color choices themselves, I see what you mean. I will file a problem report on that to ensure that this issue is looked at and fixed in a future release. However, please keep in mind that you can use the FieldColors parameter (on the General tab in 4.6 and later and in Parameters II in 4.5) to specifically select colors in case you think that they are too hard to differentiate.

    Hope that helps! Feel free to write back if you have more questions.

    Rocco


  • 3.  RE: Chart issues

    Employee
    Posted 05-13-2013 13:44

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rpigneri

    Hello, ThomasT,

    Could you please provide me with the version of LAE that you are using and the operating system that the server is running on (i.e., RedHat Enterprise Linux 6.2 or Solaris 11.0)? That will help us ensure that we fix the problem for your platform.

    Thank you,

    Rocco


  • 4.  RE: Chart issues

    Employee
    Posted 05-15-2013 06:33

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ThomasT

    Hi Rocco.

    This actual graph is running on the server on my own computer, which is Windows 7 and LAE version 4.6.0.

    Thomas


  • 5.  RE: Chart issues

    Employee
    Posted 05-15-2013 11:30

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rpigneri

    Thanks, Thomas. This really helps us out.

    Rocco