Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rpigneriDear 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