I was wondering if it was possible to control the number of tick marks the Flex DateTimeAxis displays along its axis? Currently, the datetimeaxis controls how many tick marks to display on its axis whenever I change the date range on my chart. Ideally, I would just like there to be only and always 7 tick marks, regardless of how many datapoints are on the chart. I went into the DateTimeAxis class and noticed that there is a public function called transformCache(), which actually handles rendering the tick marks on the axis but I am not sure what class calls this method. Does anyone have any hints or ideas about this?
Thanks much, tone
its actually pretty easy , check out the public properties my code sample below is accessing.
var hAxis:DateTimeAxis = new DateTimeAxis();
hAxis.dataUnits = "minutes";
hAxis.dataInterval = 1;
hAxis.minorTickUnits = _minorUnits;
hAxis.minorTickInterval = _minorInterval;
hAxis.labelUnits = _labelUnits;
hAxis.interval = _labelInterval;