| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../override.css" type="text/css"><meta name="keywords" content="DateTimeAxis,mx.charts.DateTimeAxis,DISABLED,FOCUSED,FOCUSEDSELECTED,NONE,ROLLOVER,SELECTED,actualCreationPolicy,alignLabelsToUnits,autoLayout,axis,baseline,borderMetrics,categoryField,chart,chartItem,childDescriptors,clipContent,contentMouseX,contentMouseY,contextColor,creatingContentPane,creationIndex,creationPolicy,currentState,data,dataFunction,dataInterval,dataProvider,dataProvider,dataTipFunction,dataUnits,deferredContentCreated,direction,disabledDays,disabledRanges,displayLocalTime,displayText,distance,element,element,element,extendLabelToEnd,gutters,heightLimit,highlightElements,horizontal,horizontalScrollPosition,id,index,interval,interval,interval,item,item,itemRenderer,label,labelFunction,labelFunction,labelRenderer,labelUnits,legendData,legendItemClass,length,marker,markerAspectRatio,maxHorizontalScrollPosition,maxLabelWidth,maxVerticalScrollPosition,maximum,maximum,maximum,maximumLabelPrecision,maximumLabelPrecision,minimum,minimum,minimum,minorInterval,minorTickInterval,minorTickUnits,minorTicks,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,moduleFactory,numChildren,numElements,otherAxes,padding,parseFunction,placement,position,radiusAxis,rawChildren,requiredDescribedFields,showLabelVertically,source,text,ticks,ticksBetweenLabels,titleRenderer,type,type,type,unitSize,value,verticalScrollPosition,viewMetrics,viewMetricsAndPadding,x,y,addChild,addChildAt,addElement,addElementAt,adjustGutters,attachOverlay,buildMinorTickCache,chartStateChanged,clone,contentToGlobal,contentToLocal,createBorder,createComponentFromDescriptor,createComponentsFromDescriptors,createDeferredContent,executeBindings,executeChildBindings,filterCache,filterCache,formatDays,formatForScreen,formatMilliseconds,formatMinutes,formatMonths,formatSeconds,formatYears,getChildAt,getChildByName,getChildIndex,getChildren,getElementAt,getElementIndex,getLabelEstimate,getLabels,globalToContent,invalidateDisplayList,invalidateSize,invertTransform,layoutChrome,localToContent,mapCache,measure,move,preferDropLabels,reduceLabels,reduceLabels,removeAllChildren,removeAllElements,removeChild,removeChildAt,removeElement,removeElementAt,scrollChildren,setActualSize,setChildIndex,setElementIndex,swapElements,swapElementsAt,transformCache,transformCache,update,updateDisplayList,updateDisplayList"><title>mx.charts.DateTimeAxis</title><script src="../../AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../help.js"></script><script language="javascript" type="text/javascript" src="../../cookies.js"></script><script language="javascript" type="text/javascript"><!-- |
| asdocTitle = 'DateTimeAxis - ApacheFlex API Reference'; |
| var baseRef = '../../'; |
| window.onload = configPage; |
| --></script> |
| <script type="text/javascript"> |
| scrollToNameAnchor(); |
| </script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">Apache Flex 4.16.1 API Reference </td><td class="titleTableTopNav" align="right"><a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a> | <a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a> | <a href="../../all-index-A.html" onclick="loadClassListFrame('../../index-list.html')">Index</a> | <a id="framesLink1" href="../../index.html?mx/charts/DateTimeAxis.html&mx/charts/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../images/logo.jpg" class="logoImage" alt="AdobeLogo" title="AdobeLogo"></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">DateTimeAxis</td><td class="titleTableSubNav" id="subNav" align="right"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a> | <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3"> </td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve"> |
| <!-- |
| |
| if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("DateTimeAxis"); titleBar_setSubNav(false,true,false,false,false,false,false,false,true,true,false ,false,false,false,false,false);} |
| --> |
| </script><div xmlns:fn="http://www.w3.org/2005/xpath-functions" class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">mx.charts</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DateTimeAxis</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">DateTimeAxis <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a> <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a> <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> flash.events.EventDispatcher</td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p></p><p></p> |
| The DateTimeAxis class maps time values evenly |
| between a minimum and maximum value along a chart axis. |
| It can plot values represented either as instances of the Date class, |
| as numeric values representing the number of milliseconds |
| since the epoch (midnight on January 1, 1970, GMT), |
| or as String values when you provide a custom parsing function. |
| <p>The DateTimeAxis chooses the most reasonable units |
| to mark the axis by examining the range between the minimum and maximum |
| values of the axis. |
| The Axis chooses the largest unit that generates |
| a reasonable number of labels for the given range. |
| You can restrict the set of units the chart considers, |
| or specify exactly which units it should use, |
| by setting the <code>labelUnits</code> property.</p> |
| <p>You can specifiy the minimum and maximum values explicitly, |
| or let the axis automatically determine them by examining |
| the values being renderered in the chart. |
| By default, the DateTimeAxis chooses the smallest possible range |
| to contain all the values represented in the chart. |
| Optionally, you can request that the minimum and maximum values |
| be rounded to whole units |
| (milliseconds, seconds, minutes, hours, days, weeks, months, years) |
| by setting the <code>autoAdjust</code> property to <code>true</code>.</p> |
| |
| <p>You can specify disabled days of a week and disabled ranges of dates |
| in order to show only working days on the axis but not all days |
| between minimum and maximum. It also filters data and shows only data corresponding |
| to working days on the chart</p> |
| <p></p><a name="mxmlSyntaxSummary"></a><span class="classHeaderTableLabel">MXML Syntax</span><span id="showMxmlLink" style="display:none"><a href="#mxmlSyntaxSummary" onclick="toggleMXMLOnly();"><img src="../../images/collapsed.gif" title="collapsed" alt="collapsed" class="collapsedImage">Show MXML Syntax</a><br/></span><span id="hideMxmlLink"><a href="#mxmlSyntaxSummary" onclick="toggleMXMLOnly();"><img src="../../images/expanded.gif" title="expanded" alt="expanded" class="expandedImage">Hide MXML Syntax</a></span><div id="mxmlSyntax" class="mxmlSyntax"> |
| <p>The <code><mx:DateTimeAxis></code> tag inherits all the properties |
| of its parent classes and adds the following properties:</p> |
| |
| <pre> |
| <mx:DateTimeAxis |
| <strong>Properties</strong> |
| alignLabelsToUnits="true|false" |
| dataUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years" |
| disabledDays="<i>Array; No default</i>" |
| disabledRanges="<i>Array; No default</i>" |
| displayLocalTime="<i>false</i>" |
| interval="<i>Number</i>" |
| labelUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years" |
| maximum="<i>Date</i>" |
| minimum="<i>Date</i>" |
| minorTickInterval="<i>Number</i>" |
| minorTickUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years" |
| /> |
| </pre> |
| </div><script language="javascript" type="text/javascript"><!-- |
| setMXMLOnly(); |
| --></script><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="../../mx/charts/chartClasses/IAxis.html" target="">mx.charts.chartClasses.IAxis</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#alignLabelsToUnits" class="signatureLink">alignLabelsToUnits</a> : Boolean<div class="summaryTableDescription"> |
| Determines the placement of labels along the axis.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#autoAdjust" class="signatureLink">autoAdjust</a> : Boolean<div class="summaryTableDescription"> |
| Specifies whether Flex rounds values.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#baseAtZero" class="signatureLink">baseAtZero</a> : Boolean<div class="summaryTableDescription"> |
| Specifies whether Flex tries to keep the minimum |
| and maximum values rooted at zero.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#baseline" class="signatureLink">baseline</a> : Number<div class="summaryTableDescription">[read-only] |
| The computed minimum value for the axis |
| as long as this value is greater than 0.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/AxisBase.html#chartDataProvider" class="signatureLink">chartDataProvider</a> : Object<div class="summaryTableDescription">[write-only] |
| The data provider assigned to the enclosing chart.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#computedMaximum" class="signatureLink">computedMaximum</a> : Number<div class="summaryTableDescription"> |
| The computed maximum value represented by this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#computedMinimum" class="signatureLink">computedMinimum</a> : Number<div class="summaryTableDescription"> |
| The computed minimum value represented by this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#dataInterval" class="signatureLink">dataInterval</a> : Number<div class="summaryTableDescription">[write-only] |
| Specifies the interval between data in your chart, |
| specified in dataUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#dataUnits" class="signatureLink">dataUnits</a> : String<div class="summaryTableDescription"> |
| Specifies the units that you expect the data in your chart to represent.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#direction" class="signatureLink">direction</a> : String<div class="summaryTableDescription"> |
| Determines the direction in which the axis is rendered.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#disabledDays" class="signatureLink">disabledDays</a> : Array<div class="summaryTableDescription"> |
| The days to disable in a week.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#disabledRanges" class="signatureLink">disabledRanges</a> : Array<div class="summaryTableDescription"> |
| Disables single and multiple days.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#displayLocalTime" class="signatureLink">displayLocalTime</a> : Boolean<div class="summaryTableDescription"> |
| When set to true, |
| a DateTimeAxis considers all date values to be in the time zone |
| of the client machine running the application.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/AxisBase.html#displayName" class="signatureLink">displayName</a> : String<div class="summaryTableDescription"> |
| The name of the axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#interval" class="signatureLink">interval</a> : Number<div class="summaryTableDescription"> |
| Specifies the number of labelUnits |
| between label values along the axis.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#labelFunction" class="signatureLink">labelFunction</a> : Function<div class="summaryTableDescription"> |
| Called to format axis values for display as labels.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#labelUnits" class="signatureLink">labelUnits</a> : String<div class="summaryTableDescription"> |
| The units that the axis uses to generate labels.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#maximum" class="signatureLink">maximum</a> : Date<div class="summaryTableDescription"> |
| Specifies the maximum value for an axis label.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#minimum" class="signatureLink">minimum</a> : Date<div class="summaryTableDescription"> |
| Specifies the minimum value for an axis label.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#minorTickInterval" class="signatureLink">minorTickInterval</a> : Number<div class="summaryTableDescription"> |
| Specifies the number of minorTickUnits |
| between minor tick marks along the axis.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#minorTicks" class="signatureLink">minorTicks</a> : Array<div class="summaryTableDescription">[read-only] |
| An Array of minor tick marks generated to represent this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#minorTickUnits" class="signatureLink">minorTickUnits</a> : String<div class="summaryTableDescription"> |
| The units that the Axis considers when generating minor tick marks.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#padding" class="signatureLink">padding</a> : Number<div class="summaryTableDescription"> |
| Specifies padding that Flex adds to the calculated minimum and maximum |
| values for the axis when rendering the values on the screen.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#parseFunction" class="signatureLink">parseFunction</a> : Function<div class="summaryTableDescription">[override] |
| Specifies a method that customizes the value of the data points.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/AxisBase.html#title" class="signatureLink">title</a> : String<div class="summaryTableDescription"> |
| The text for the title displayed along the axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#unitSize" class="signatureLink">unitSize</a> : Number<div class="summaryTableDescription">[override] [read-only] |
| The width, in pixels, of a single data unit.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr></table></div><a name="protectedPropertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Protected Properties</div><div class="showHideLinks"><div id="hideInheritedProtectedProperty" class="hideInheritedProtectedProperty"><a class="showHideLink" href="#protectedPropertySummary" onclick="javascript:setInheritedVisible(false,'ProtectedProperty');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Protected Properties</a></div><div id="showInheritedProtectedProperty" class="showInheritedProtectedProperty"><a class="showHideLink" href="#protectedPropertySummary" onclick="javascript:setInheritedVisible(true,'ProtectedProperty');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Protected Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProtectedProperty"><tr><th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#assignedMaximum" class="signatureLink">assignedMaximum</a> : Number<div class="summaryTableDescription"> |
| The explicitly assigned maximum value.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#assignedMinimum" class="signatureLink">assignedMinimum</a> : Number<div class="summaryTableDescription"> |
| The explicitly assigned minimum value.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#computedInterval" class="signatureLink">computedInterval</a> : Number<div class="summaryTableDescription"> |
| The computed interval represented by this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#dataDescriptions" class="signatureLink">dataDescriptions</a> : Array<div class="summaryTableDescription">[read-only] |
| An Array of DataDescription structures describing the data being represented by the chart.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#labelCache" class="signatureLink">labelCache</a> : Array<div class="summaryTableDescription"> |
| The most recent set of AxisLabel objects |
| generated to represent this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#labelMaximum" class="signatureLink">labelMaximum</a> : Number<div class="summaryTableDescription"> |
| The maximum value where a label should be placed.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#labelMinimum" class="signatureLink">labelMinimum</a> : Number<div class="summaryTableDescription"> |
| The minimum value where a label should be placed.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#minorTickCache" class="signatureLink">minorTickCache</a> : Array<div class="summaryTableDescription"> |
| The most recent set of minor tick marks generated to represent this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#requiredDescribedFields" class="signatureLink">requiredDescribedFields</a> : uint<div class="summaryTableDescription">[override] [read-only] |
| The fields of the DescribeData structure that this axis is interested in.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProtectedProperty"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../mx/charts/chartClasses/NumericAxis.html#ticks" class="signatureLink">ticks</a> : Array<div class="summaryTableDescription">[read-only] |
| An Array of tick marks for this axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#DateTimeAxis()" class="signatureLink">DateTimeAxis</a>()</div><div class="summaryTableDescription"> |
| Constructor.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/AxisBase.html#dataChanged()" class="signatureLink">dataChanged</a>():void</div><div class="summaryTableDescription"> |
| Triggers events that inform the range object |
| when the chart data has changed.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#filterCache()" class="signatureLink">filterCache</a>(cache:Array, field:String, filteredField:String):void</div><div class="summaryTableDescription">[override] |
| Filters a set of values of arbitrary type |
| to a set of numbers that can be mapped.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#formatForScreen()" class="signatureLink">formatForScreen</a>(value:Object):String</div><div class="summaryTableDescription"> |
| Formats values for display in DataTips.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#getLabelEstimate()" class="signatureLink">getLabelEstimate</a>():<a href="../../mx/charts/chartClasses/AxisLabelSet.html">AxisLabelSet</a></div><div class="summaryTableDescription"> |
| Determines the range to estimate what the axis labels should be.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#getLabels()" class="signatureLink">getLabels</a>(minimumAxisLength:Number):<a href="../../mx/charts/chartClasses/AxisLabelSet.html">AxisLabelSet</a></div><div class="summaryTableDescription"> |
| Gets the labels text that is rendered.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#invertTransform()" class="signatureLink">invertTransform</a>(value:Number):Object</div><div class="summaryTableDescription"> |
| Maps a position along the axis back to a numeric data value.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#mapCache()" class="signatureLink">mapCache</a>(cache:Array, field:String, convertedField:String, indexValues:Boolean = false):void</div><div class="summaryTableDescription"> |
| Converts a set of values of arbitrary type |
| to a set of numbers that can be transformed into screen coordinates.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#preferDropLabels()" class="signatureLink">preferDropLabels</a>():Boolean</div><div class="summaryTableDescription"> |
| Determines how the axis handles overlapping labels.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#reduceLabels()" class="signatureLink">reduceLabels</a>(intervalStart:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a>, intervalEnd:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a>):<a href="../../mx/charts/chartClasses/AxisLabelSet.html">AxisLabelSet</a></div><div class="summaryTableDescription">[override] |
| Invoked when an AxisRenderer is unable to cleanly render |
| the labels without overlap, and would like the Axis object |
| to reduce the set of labels.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/AxisBase.html#registerDataTransform()" class="signatureLink">registerDataTransform</a>(transform:<a href="../../mx/charts/chartClasses/DataTransform.html">DataTransform</a>, dimensionName:String):void</div><div class="summaryTableDescription"> |
| Each DataTransform that makes use of an axis |
| registers itself with that axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#transformCache()" class="signatureLink">transformCache</a>(cache:Array, field:String, convertedField:String):void</div><div class="summaryTableDescription">[override] |
| Maps a set of values from data space to screen space.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/AxisBase.html#unregisterDataTransform()" class="signatureLink">unregisterDataTransform</a>(transform:<a href="../../mx/charts/chartClasses/DataTransform.html">DataTransform</a>):void</div><div class="summaryTableDescription"> |
| Each DataTransform that makes use of an axis |
| registers itself with that axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#update()" class="signatureLink">update</a>():void</div><div class="summaryTableDescription"> |
| |
| Updates the chart.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr></table></div><a name="protectedMethodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Protected Methods </div><div class="showHideLinks"><div id="hideInheritedProtectedMethod" class="hideInheritedProtectedMethod"><a class="showHideLink" href="#protectedMethodSummary" onclick="javascript:setInheritedVisible(false,'ProtectedMethod');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Show Inherited Protected Methods</a></div><div id="showInheritedProtectedMethod" class="showInheritedProtectedMethod"><a class="showHideLink" href="#protectedMethodSummary" onclick="javascript:setInheritedVisible(true,'ProtectedMethod');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Protected Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProtectedMethod"><tr><th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class="hideInheritedProtectedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#adjustMinMax()" class="signatureLink">adjustMinMax</a>(minValue:Number, maxValue:Number):void</div><div class="summaryTableDescription"> |
| Adjusts the generated or assigned range of the axis's labels.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#buildLabelCache()" class="signatureLink">buildLabelCache</a>():Boolean</div><div class="summaryTableDescription"> |
| Populates the labelCache property with labels representing the current |
| values of the axis.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#buildMinorTickCache()" class="signatureLink">buildMinorTickCache</a>():Array</div><div class="summaryTableDescription">[override] |
| |
| Builds an Array of positions for the minor tick marks Array that is generated by this axis.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProtectedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/AxisBase.html#describeData()" class="signatureLink">describeData</a>(requiredFields:uint):Array</div><div class="summaryTableDescription"> |
| Called by the governing DataTransform to obtain a description |
| of the data represented by this IChartElement.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/AxisBase.html">AxisBase</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatDays()" class="signatureLink">formatDays</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with day-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatMilliseconds()" class="signatureLink">formatMilliseconds</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with millisecond-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatMinutes()" class="signatureLink">formatMinutes</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with minute-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatMonths()" class="signatureLink">formatMonths</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with month-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatSeconds()" class="signatureLink">formatSeconds</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with second-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#formatYears()" class="signatureLink">formatYears</a>(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</div><div class="summaryTableDescription"> |
| The default formatting function used |
| when the axis renders with year-based labelUnits.</div></td><td class="summaryTableOwnerCol">DateTimeAxis</td></tr><tr class="hideInheritedProtectedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#guardMinMax()" class="signatureLink">guardMinMax</a>(min:Number, max:Number):Array</div><div class="summaryTableDescription"> |
| Protects the range against invalid values for this axis type.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr><tr class="hideInheritedProtectedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/charts/chartClasses/NumericAxis.html#invalidateCache()" class="signatureLink">invalidateCache</a>():void</div><div class="summaryTableDescription"> |
| Invalidates the cached labels and tick marks that represent this axis's values.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/charts/chartClasses/NumericAxis.html">NumericAxis</a></td></tr></table></div><script language="javascript" type="text/javascript"><!-- |
| showHideInherited(); |
| --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="alignLabelsToUnits"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">alignLabelsToUnits</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>alignLabelsToUnits:Boolean</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Determines the placement of labels along the axis. |
| <p>When <code>false</code>, the chart always puts a label at the beginning of the axis. For example, |
| if your labels are every month and your first datapoint is July 14th, your first label |
| will be on July 14th. When <code>true</code>, Flex first calculates the label units, then labels |
| the first whole interval of those units. For example, if your first data point was |
| July 14th, and your label units was months (set explicitly or dynamically calculated), |
| the first label will be on August 1st.</p> |
| |
| </p><p> The default value is <code>true</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get alignLabelsToUnits():Boolean</code><br/><code> public function set alignLabelsToUnits(value:Boolean):void</code><br/></div><a name="propertyDetail"></a><a name="dataInterval"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">dataInterval</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>dataInterval:Number</code> [write-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the interval between data in your chart, |
| specified in <code>dataUnits</code>. |
| <p>If, for example, the <code>dataUnits</code> property |
| is set to <code>"hours"</code>, |
| and <code>dataInterval</code> property is set to 4, |
| the chart assumes your data occurs every four hours. |
| This affects how some series (such as ColumnSeries |
| and CandlestickSeries) render their data. |
| It also affects how labels are automatically chosen.</p> |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function set dataInterval(value:Number):void</code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="DateTimeAxis.html#dataUnits" target="">dataUnits</a></div></div><a name="propertyDetail"></a><a name="dataUnits"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">dataUnits</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>dataUnits:String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the units that you expect the data in your chart to represent. |
| The value can be one of the following: |
| <ul> |
| <li><code>milliseconds</code></li> |
| <li><code>seconds</code></li> |
| <li><code>minutes</code></li> |
| <li><code>hours</code></li> |
| <li><code>days</code></li> |
| <li><code>weeks</code></li> |
| <li><code>months</code></li> |
| <li><code>years</code></li> |
| </ul> |
| <p>This value is used in two ways. |
| First, when choosing appropriate label units, |
| a DateTimeAxis does not choose any unit smaller |
| than the units represented by the data. |
| If the value of the <code>dataUnits</code> property |
| is <code>days</code>, the chart would not render labels |
| for every hour, no matter what the minmium/maximum range is.</p> |
| <p>Secondly, the value of the <code>dataUnits</code> property |
| is used by some series to affect their rendering. |
| Specifically, most columnar series |
| (such as ColumnSeries, BarSeries, CandlestickSeries, and HLOCSeries) |
| use the value of the <code>dataUnits</code> property |
| to determine how wide to render their columns.</p> |
| <p>If, for example, your ColumnChart control's horizontal axis |
| had its <code>labelUnits</code> property set to <code>weeks</code> |
| and its <code>dataUnits</code> property set to <code>days</code>, |
| the ColumnChart renders each column at 1/7th the distance |
| between labels.</p> |
| <p>When the <code>dataUnits</code> property is set to <code>null</code>, columnar series render |
| their columns as days, but the DateTimeAxis chooses |
| an appropriate unit when it generates the labels.</p> |
| </p><p> The default value is <code>null</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get dataUnits():String</code><br/><code> public function set dataUnits(value:String):void</code><br/></div><a name="propertyDetail"></a><a name="disabledDays"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">disabledDays</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>disabledDays:Array</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The days to disable in a week. |
| All the dates in a month, for the specified day, are disabled. |
| The elements of this array can have values from 0 (Sunday) to |
| 6 (Saturday). |
| For example, a value of <code>[ 0, 6 ]</code> |
| disables Sunday and Saturday. |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get disabledDays():Array</code><br/><code> public function set disabledDays(value:Array):void</code><br/></div><a name="propertyDetail"></a><a name="disabledRanges"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">disabledRanges</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>disabledRanges:Array</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Disables single and multiple days. |
| <p>This property accepts an Array of objects as a parameter. |
| Each object in this array is a Date object, specifying a |
| single day to disable; or an object containing either or both |
| of the <code>rangeStart</code> and <code>rangeEnd</code> properties, |
| each of whose values is a Date object. |
| The value of these properties describes the boundaries |
| of the date range. |
| If either is omitted, the range is considered |
| unbounded in that direction. |
| If you specify only <code>rangeStart</code>, |
| all the dates after the specified date are disabled, |
| including the <code>rangeStart</code> date. |
| If you specify only <code>rangeEnd</code>, |
| all the dates before the specified date are disabled, |
| including the <code>rangeEnd</code> date. |
| To disable a single day, use a single Date object specifying a date |
| in the Array.</p> |
| <p>The following example, disables the following dates: January 11 |
| 2006, the range January 23 - February 10 2006, and March 1 2006 |
| and all following dates.</p> |
| <p><code>disabledRanges="{[ new Date(2006,0,11), {rangeStart: |
| new Date(2006,0,23), rangeEnd: new Date(2006,1,10)}, |
| {rangeStart: new Date(2006,2,1)} ]}"</code></p> |
| </p><p> The default value is <code>[]</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get disabledRanges():Array</code><br/><code> public function set disabledRanges(value:Array):void</code><br/></div><a name="propertyDetail"></a><a name="displayLocalTime"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">displayLocalTime</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>displayLocalTime:Boolean</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| When set to <code>true</code>, |
| a DateTimeAxis considers all date values to be in the time zone |
| of the client machine running the application. |
| If <code>false</code>, all values are in Universal Time |
| (Greenwich Mean Time). |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get displayLocalTime():Boolean</code><br/><code> public function set displayLocalTime(value:Boolean):void</code><br/></div><a name="propertyDetail"></a><a name="interval"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">interval</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>interval:Number</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the number of <code>labelUnits</code> |
| between label values along the axis. |
| Flex calculates the interval if this property is set to <code>null</code>. |
| </p><p> The default value is <code>null</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get interval():Number</code><br/><code> public function set interval(value:Number):void</code><br/></div><a name="propertyDetail"></a><a name="labelUnits"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">labelUnits</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>labelUnits:String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The units that the axis uses to generate labels. |
| By default, a DateTimeAxis considers all valid units |
| (<code>milliseconds</code>, <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, |
| <code>weeks</code>, <code>months</code>, or <code>years</code>). |
| |
| <p>If the <code>labelUnits</code> property is not set, |
| the chart does not use any unit smaller than the value |
| of the <code>dataUnits</code> property to render labels.</p> |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get labelUnits():String</code><br/><code> public function set labelUnits(value:String):void</code><br/></div><a name="propertyDetail"></a><a name="maximum"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">maximum</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>maximum:Date</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the maximum value for an axis label. |
| If <code>null</code>, Flex determines the minimum value |
| from the data in the chart. |
| |
| </p><p> The default value is <code>null</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get maximum():Date</code><br/><code> public function set maximum(value:Date):void</code><br/></div><a name="propertyDetail"></a><a name="minimum"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">minimum</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>minimum:Date</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the minimum value for an axis label. |
| If <code>null</code>, Flex determines the minimum value |
| from the data in the chart. |
| </p><p> The default value is <code>null</code>.</p><br/><span class="label"> Implementation </span><br/><code> public function get minimum():Date</code><br/><code> public function set minimum(value:Date):void</code><br/></div><a name="propertyDetail"></a><a name="minorTickInterval"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">minorTickInterval</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>minorTickInterval:Number</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies the number of <code>minorTickUnits</code> |
| between minor tick marks along the axis. |
| If this is set to <code>NaN</code>, |
| the DateTimeAxis calculates it automatically. |
| |
| <p>Normally the <code>minorTickInterval</code> property |
| is automatically set to 1. |
| If, however, the <code>minorTickUnits</code> property |
| is the same units as the <code>dataUnits</code> property |
| (either set explicitly or implicitly calculated), |
| then the <code>minorTickInterval</code> property |
| is the maximum of 1, or <code>dataInterval</code>.</p> |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get minorTickInterval():Number</code><br/><code> public function set minorTickInterval(value:Number):void</code><br/></div><a name="propertyDetail"></a><a name="minorTickUnits"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">minorTickUnits</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>minorTickUnits:String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The units that the Axis considers when generating minor tick marks. |
| By default, a DateTimeAxis considers all valid units |
| (<code>milliseconds</code>, <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, |
| <code>weeks</code>, <code>months</code>, or <code>years</code>). |
| |
| <p>If this property is not set, the chart determines the value |
| of the <code>minorTickUnits</code> property. |
| If the label interval is greater than 1, |
| the <code>minorTickUnits</code> property is set to the value |
| of the <code>labelUnits</code> property, |
| and the <code>minorTickInterval</code> property is set to 1. |
| If the label interval is 1, the <code>minorTickUnits</code> property is |
| set to the next smaller unit from the <code>labelUnits</code> property. |
| If set, the <code>minorTickUnits</code> property can never be smaller |
| than the value of the <code>dataUnits</code> property.</p> |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get minorTickUnits():String</code><br/><code> public function set minorTickUnits(value:String):void</code><br/></div><a name="propertyDetail"></a><a name="parseFunction"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">parseFunction</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>parseFunction:Function</code>[override] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Specifies a method that customizes the value of the data points. |
| With this property, you specify a method that accepts a value and |
| returns a Date object. The Date object is then used in the DateTimeAxis |
| object of the chart. This lets you provide customizable date input strings |
| and convert them to Date objects, which Flex can then interpret for use in the DateTimeAxis. |
| |
| <p>Flex passes only one parameter to the parsing method. This parameter is the value of the |
| data point you specified for the series. Typically, it is a String that represents some form |
| of a date. You cannot override this parameter or add additional parameters.</p> |
| |
| <p>This Date object is immediately converted to a numeric value, |
| so custom parseFunctions can reuse the same Date object |
| for performance reasons. |
| By default, the DateTimeAxis uses the string parsing functionality |
| in the ECMA standard <code>Date.parse()</code> method.</p> |
| |
| The following example uses a data provider that defines a data object in the format { yyyy, mm, dd }. |
| The method specified by the <code>parseFunction</code> uses these values to create a Date object |
| that the axis can use. |
| |
| <pre> |
| <mx:Script> |
| import mx.collections.ArrayCollection; |
| [Bindable] |
| public var aapl:ArrayCollection = new ArrayCollection([ |
| {date: "2005, 8, 1", close: 42.71}, |
| {date: "2005, 8, 2", close: 42.99}, |
| {date: "2005, 8, 3", close: 44} |
| ]); |
| |
| public function myParseFunction(s:String):Date { |
| // Get an array of Strings from the comma-separated String passed in. |
| var a:Array = s.split(","); |
| |
| // Create the new Date object. Note that the month argument is 0-based (with 0 being January). |
| var newDate:Date = new Date(a[0],a[1]-1,a[2]); |
| return newDate; |
| } |
| </mx:Script> |
| <mx:LineChart id="mychart" dataProvider="{aapl}" showDataTips="true"> |
| <mx:horizontalAxis> |
| <mx:DateTimeAxis dataUnits="days" parseFunction="myParseFunction"/> |
| </mx:horizontalAxis> |
| <mx:series> |
| <mx:LineSeries yField="close" xField="date" displayName="AAPL"/> |
| </mx:series> |
| </mx:LineChart> |
| </pre> |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get parseFunction():Function</code><br/><code> public function set parseFunction(value:Function):void</code><br/></div><a name="propertyDetail"></a><a name="requiredDescribedFields"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">requiredDescribedFields</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>requiredDescribedFields:uint</code> [read-only] [override] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The fields of the DescribeData structure that this axis is interested in. |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> protected function get requiredDescribedFields():uint</code><br/></div><a name="propertyDetail"></a><a name="unitSize"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">unitSize</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>unitSize:Number</code> [read-only] [override] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The width, in pixels, of a single data unit. |
| The type of a data unit is determined |
| by the value of the <code>dataUnits</code> property. |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get unitSize():Number</code><br/></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="DateTimeAxis()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">DateTimeAxis</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function DateTimeAxis()</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p> |
| Constructor. |
| |
| </p></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="buildMinorTickCache()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">buildMinorTickCache</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code>override protected function buildMinorTickCache():Array</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| |
| Builds an Array of positions for the minor tick marks Array that is generated by this axis. |
| Subclasses must implement this function. This function is called automatically |
| by the NumericAxis. You should access the <code>minorTicks</code> property |
| instead of calling this function directly. |
| |
| </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>Array</code> — An Array of positions from 0 to 1 that represent points between the axis |
| minimum and maximum values where minor tick marks are rendered. |
| |
| </td></tr></table></div><a name="filterCache()"></a><a name="filterCache(Array,String,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">filterCache</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>override public function filterCache(cache:Array, field:String, filteredField:String):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Filters a set of values of arbitrary type |
| to a set of numbers that can be mapped. |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">cache</span>:Array</code> — An Array of objects where converted values |
| are read from and stored. |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">field</span>:String</code> — The field of the objects in the cache Array |
| containing the pre-filtered values. |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">filteredField</span>:String</code> — The field of the objects in the cache Array |
| where filtered values should be stored. |
| |
| </td></tr></table></p></div><a name="formatDays()"></a><a name="formatDays(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatDays</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatDays(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with day-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method to provide |
| alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="formatMilliseconds()"></a><a name="formatMilliseconds(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatMilliseconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatMilliseconds(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with millisecond-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method |
| to provide alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="formatMinutes()"></a><a name="formatMinutes(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatMinutes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatMinutes(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with minute-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method |
| to provide alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="formatMonths()"></a><a name="formatMonths(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatMonths</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatMonths(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with month-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method to |
| provide alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="formatSeconds()"></a><a name="formatSeconds(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatSeconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatSeconds(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with second-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method to |
| provide alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="formatYears()"></a><a name="formatYears(Date,Date,mx.charts.DateTimeAxis)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">formatYears</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> protected function formatYears(d:Date, previousValue:Date, axis:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a>):String</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| The default formatting function used |
| when the axis renders with year-based <code>labelUnits</code>. |
| If you write a custom DateTimeAxis class, you can override this method |
| to provide alternate default formatting. |
| |
| <p>You do not call this method directly. Instead, Flex calls this method before it |
| renders the label to get the appropriate String to display.</p> |
| |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">d</span>:Date</code> — The Date object that contains the unit to format. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">previousValue</span>:Date</code> — The Date object that contains the data point that occurs |
| prior to the current data point. |
| |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">axis</span>:<a href="../../mx/charts/DateTimeAxis.html">DateTimeAxis</a></code> — The DateTimeAxis on which the label is rendered. |
| |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>String</code> — The formatted label. |
| |
| </td></tr></table></div><a name="reduceLabels()"></a><a name="reduceLabels(mx.charts.AxisLabel,mx.charts.AxisLabel)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">reduceLabels</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>override public function reduceLabels(intervalStart:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a>, intervalEnd:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a>):<a href="../../mx/charts/chartClasses/AxisLabelSet.html">AxisLabelSet</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Invoked when an AxisRenderer is unable to cleanly render |
| the labels without overlap, and would like the Axis object |
| to reduce the set of labels. |
| The method is passed the two labels that are overlapping. |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">intervalStart</span>:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a></code> — The start of the interval where labels overlap. |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">intervalEnd</span>:<a href="../../mx/charts/AxisLabel.html">AxisLabel</a></code> — The end of the interval where labels overlap. |
| </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../mx/charts/chartClasses/AxisLabelSet.html">AxisLabelSet</a></code> — A new label set that resolves the overlap by reducing |
| the number of labels. |
| |
| </td></tr></table></div><a name="transformCache()"></a><a name="transformCache(Array,String,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">transformCache</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>override public function transformCache(cache:Array, field:String, convertedField:String):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Maps a set of values from data space to screen space. |
| </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">cache</span>:Array</code> — An Array of objects where mapped values |
| are read from and stored. |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">field</span>:String</code> — The field of the objects in the cache Array |
| containing the pre-mapped values. |
| </td></tr><tr><td class="paramSpacer"> </td></tr><tr><td width="20px"></td><td><code><span class="label">convertedField</span>:String</code> — The field of the objects in the cache Array |
| where mapped values should be stored. |
| |
| </td></tr></table></p></div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples</div><div class="exampleHeader">DateTimeAxisExample.mxml</div><div class="detailBody"><div class="listing"><pre><?xml version="1.0"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- Simple example to demonstrate the DateTimeAxis class. --> |
| <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx"> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| import mx.collections.ArrayCollection; |
| |
| [Bindable] |
| public var stockDataAC:ArrayCollection = new ArrayCollection( [ |
| {date: "2005, 7, 27", close: 41.71}, |
| {date: "2005, 7, 28", close: 42.21}, |
| {date: "2005, 7, 29", close: 42.11}, |
| {date: "2005, 8, 1", close: 42.71}, |
| {date: "2005, 8, 2", close: 42.99}, |
| {date: "2005, 8, 3", close: 44} ]); |
| |
| public function myParseFunction(s:String):Date { |
| // Get an array of Strings from the comma-separated String passed in. |
| var a:Array = s.split(","); |
| // Create the new Date object. Subtract one from |
| // the month property because months are zero-based in |
| // the Date constructor. |
| var newDate:Date = new Date(a[0],a[1]-1,a[2]); |
| return newDate; |
| } |
| ]]> |
| </fx:Script> |
| |
| <mx:Panel title="DateTimeAxis Example" height="100%" width="100%"> |
| |
| <mx:LineChart id="mychart" height="100%" width="100%" |
| paddingRight="5" paddingLeft="5" |
| showDataTips="true" dataProvider="{stockDataAC}"> |
| |
| <mx:horizontalAxis> |
| <mx:DateTimeAxis dataUnits="days" parseFunction="myParseFunction"/> |
| </mx:horizontalAxis> |
| |
| <mx:verticalAxis> |
| <mx:LinearAxis baseAtZero="false" /> |
| </mx:verticalAxis> |
| |
| <mx:series> |
| <mx:LineSeries yField="close" xField="date" displayName="AAPL"/> |
| </mx:series> |
| </mx:LineChart> |
| |
| </mx:Panel> |
| </s:Application> |
| </pre></div><script language="javascript" type="text/javascript"><!-- AC_FL_RunContent( "src", "examples/DateTimeAxisExample", "width", "100%", |
| "height","400px", "salign", "TL", "id", "example1", "quality", "high", "bgcolor", "", "name", |
| "example1", "flashvars","", "allowScriptAccess","sameDomain", "type", |
| "application/x-shockwave-flash","pluginspage", "http://www.macromedia.com/go/getflashplayer" ); --></script></div><br/><br/><hr><br/><p></p><center class="copyright"><footer>The Apache Software Foundation</footer><br/>Wed Nov 15 2017, 09:50 AM +01:00 </center></div></body></html><!--The Apache Software Foundation<br/>Wed Nov 15 2017, 09:50 AM +01:00 --> |