I'm trying to set the minimum and maximum of a datetime axis on a chart I'm making.. I want to show a full 24 hours along the timeline wherever the values happen to fall.
so I have
minChartDate.fullYear = currentDate.fullYear;
minChartDate.month = currentDate.month;
minChartDate.date = currentDate.date;
minChartDate.hours = offset;
maxChartDate.time = minChartDate.time + 1000*60*60*24;
<mx:DateTimeAxis dataUnits="hours" parseFunction="parseDateString" displayLocalTime="true" maximum="maxChartDate" >
but I'm getting the error 'Initializer for 'maximum': values of type Date cannot be represented in text.'
what does this mean? the documentation specifies that the minimum and maximum of a DateTimeAxis should be a date object, and that's what I'm giving them!
possibly the worst post ever.
was missing the curlies around the variable name.
But if you still want to help, I know have an issue where if I put the minimum and maximum on the datetimeaxis it just doesn't show any data even though the values are correct (midnight at one day to midnight the next day) it just shows no data and time of 0. And I can't figure that one out!