figured this out...
in the DateTimeAxis there is a method called buildLabelCache.
creating a class that extends DateTimeAxis and overriding
buildLabelCache like this:
override protected function buildLabelCache():Boolean {
var returnVal:Boolean = super.buildLabelCache();
if(labelCache.length == 1 && labelCache[0].text == "1/1/70")
labelCache.pop();
return returnVal;
}
If there is only one label and it is the default label (from a Date
object with time=0), removing it from the labelCache so it never gets
created.
--- In [email protected], "blc187" <[EMAIL PROTECTED]> wrote:
>
> A DateTimeAxis on a chart with no data shows 1 label: 1/1/70.
> Is there a way to either make the whole axis invisible, or not show
any
> date labels at all?
>
> I want to do this before I populate the chart, then when the data
comes
> in, turn the visibility back on so that the 1/1/70 never shows.
>