Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
mx.charts 

DateTimeAxis  - AS3 Flex

パッケージx

トップレベル
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

言語エレメント

グローバル定数
グローバル関数
演算子
ステートメント、キーワード、ディレクティブ
特殊な型

付録

新機能
コンパイルエラー
コンパイラー警告
ランタイムエラー
ActionScript 3 への移行
サポートされている文字セット
MXML のみのタグ
モーション XML エレメント
Timed Text タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージmx.charts
クラスpublic class DateTimeAxis
継承DateTimeAxis Inheritance NumericAxis Inheritance AxisBase Inheritance EventDispatcher Inheritance Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

DateTimeAxis クラスは、最小値から最大値の間の時間の値をグラフの軸に沿って均等にマッピングします。このクラスで、Date クラスのインスタンス、基準時(1970 年 1 月 1 日の午前 0 時 GMT)からのミリ秒数を表す数値、またはカスタム解析関数を提供したときのストリング値のいずれかとして、表示された値を描画することができます。

DateTimeAxis により、軸の最小値と最大値の間の範囲が検証され、最も適切な単位が選択されて軸に刻まれます。指定された範囲で適切な数のラベルを生成できるように、Axis では最大の単位が選択されます。 labelUnits プロパティを設定すると、グラフで選択対象となる単位のセットを制限するか、または使用される単位を厳密に指定することができます。

最小値および最大値を明示的に指定することも、グラフでレンダリングされる値を検証して、軸に自動的に最小値および最大値を決定させることもできます。 デフォルトでは、DateTimeAxis により、グラフに表示されるすべての値を含む最小の範囲が選択されます。 オプションで、autoAdjust プロパティを true に設定し、最小値および最大値を整数単位(ミリ秒、秒、分、時、日、週、月、年)に切り上げるよう要求することもできます。

最小値と最大値の間のすべての日付ではなく営業日のみを軸に表示するには、無効な曜日および無効な日付範囲を指定します。 これにより、営業日に対応するデータのみがグラフに表示されるようにデータをフィルターすることもできます。

MXML シンタックスexpandedMXML シンタックスを隠す

The <mx:DateTimeAxis> tag inherits all the properties of its parent classes and adds the following properties:

  <mx:DateTimeAxis
    Properties
    alignLabelsToUnits="true|false"
    dataUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years"
    disabledDays="Array; No default"
    disabledRanges="Array; No default"
    displayLocalTime="false"
    interval="Number"
    labelUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years"
    maximum="Date"
    minimum="Date"
    minorTickInterval="Number"
    minorTickUnits="milliseconds|seconds|minutes|hours|days|weeks|months|years"
  />
  

例を表示

さらに例を参照

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
  alignLabelsToUnits : Boolean
軸に沿ったラベルの配置を決定します。
DateTimeAxis
 InheritedautoAdjust : Boolean
Flex で値の四捨五入が行われるかどうかを指定します。
NumericAxis
 InheritedbaseAtZero : Boolean
Flex で minimum および maximum の値を 0 のままにするかどうかを指定します。
NumericAxis
 Inheritedbaseline : Number
[読み取り専用] 計算された軸の最小値です(この値が 0 より大きい場合に限り)。
NumericAxis
 InheritedchartDataProvider : Object
[書き込み専用] 周りを囲むグラフに割り当てられたデータプロバイダーです。
AxisBase
 InheritedcomputedMaximum : Number
この軸が表す計算された最大値です。
NumericAxis
 InheritedcomputedMinimum : Number
この軸が表す計算された最小値です。
NumericAxis
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
  dataInterval : Number
[書き込み専用] dataUnits で指定されたグラフ内のデータ間の間隔を指定します。
DateTimeAxis
  dataUnits : String
グラフ内でデータの表示に使用する単位を指定します。
DateTimeAxis
 Inheriteddirection : String
軸をレンダリングする方向を決定します。
NumericAxis
  disabledDays : Array
無効にする曜日です。
DateTimeAxis
  disabledRanges : Array
1 日または複数の日を無効にします。
DateTimeAxis
  displayLocalTime : Boolean
true に設定された場合は、DateTimeAxis により、すべてのデータ値がアプリケーションを実行するクライアントマシンのタイムゾーンにあると見なされます。
DateTimeAxis
 InheriteddisplayName : String
軸の名前です。
AxisBase
  interval : Number
軸に沿ったラベル間の labelUnits の数を指定します。
DateTimeAxis
 InheritedlabelFunction : Function
ラベルとして表示するために、軸の値をフォーマットするために呼び出されます。
NumericAxis
  labelUnits : String
軸によりラベルの生成に使用される単位です。
DateTimeAxis
  maximum : Date
軸のラベルの最大値を指定します。
DateTimeAxis
  minimum : Date
軸のラベルの最小値を指定します。
DateTimeAxis
  minorTickInterval : Number
軸に沿った小さな目盛りの間の minorTickUnits の数を指定します。
DateTimeAxis
 InheritedminorTicks : Array
[読み取り専用] この軸を表すために生成された小さな目盛りの配列です。
NumericAxis
  minorTickUnits : String
小さな目盛りの生成時に、軸により考慮される単位です。
DateTimeAxis
 Inheritedpadding : Number
値を画面上にレンダリングする際に、計算された軸の最小値および最大値に追加するスペースを指定します。
NumericAxis
  parseFunction : Function
[オーバーライド] データポイントの値をカスタマイズするメソッドを指定します。
DateTimeAxis
 Inheritedtitle : String
軸に沿って表示されるタイトルのテキストです。
AxisBase
  unitSize : Number
[オーバーライド] [読み取り専用] ピクセルで表された 1 つのデータ単位の幅です。
DateTimeAxis
プロテクトプロパティ
 プロパティ定義元
 InheritedassignedMaximum : Number
明示的に割り当てられた最大値です。
NumericAxis
 InheritedassignedMinimum : Number
明示的に割り当てられた最小値です。
NumericAxis
 InheritedcomputedInterval : Number
この軸が表す計算された間隔です。
NumericAxis
 InheriteddataDescriptions : Array
[読み取り専用] グラフで表されるデータを記述した DataDescription 構造体の配列です。
NumericAxis
 InheritedlabelCache : Array
この軸を表すために生成された AxisLabel オブジェクトの最新のセットです。
NumericAxis
 InheritedlabelMaximum : Number
ラベルが配置される最大値です。
NumericAxis
 InheritedlabelMinimum : Number
ラベルが配置される最小値です。
NumericAxis
 InheritedminorTickCache : Array
この軸を表すために生成された、小さな目盛りの最新のセットです。
NumericAxis
  requiredDescribedFields : uint
[オーバーライド] [読み取り専用] この軸に影響する DescribeData 構造体のフィールドです。
DateTimeAxis
 Inheritedticks : Array
[読み取り専用] この軸で使用される小さな目盛りの配列です。
NumericAxis
パブリックメソッド
 メソッド定義元
  
コンストラクターです。
DateTimeAxis
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。
EventDispatcher
 Inherited
グラフデータが変更されたときに、範囲のオブジェクトに通知を送るイベントをトリガーします。
AxisBase
 Inherited
イベントをイベントフローに送出します。
EventDispatcher
  
filterCache(cache:Array, field:String, filteredField:String):void
[オーバーライド] 任意のタイプの値のセットにフィルターをかけ、マップできる数字のセットにします。
DateTimeAxis
 Inherited
DataTips での表示用に値をフォーマットします。
NumericAxis
 Inherited
軸ラベルを予測するための範囲を決定します。
NumericAxis
 Inherited
getLabels(minimumAxisLength:Number):AxisLabelSet
レンダリングされるラベルテキストを取得します。
NumericAxis
 Inherited
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。
EventDispatcher
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
軸に対する位置を数値データの値にマップして戻します。
NumericAxis
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
mapCache(cache:Array, field:String, convertedField:String, indexValues:Boolean = false):void
任意のタイプの値のセットを、画面の座標に換算できる数値のセットに変換します。
NumericAxis
 Inherited
軸による重なるラベルの処理方法を決定します。
NumericAxis
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
  
reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet
[オーバーライド] AxisRenderer がラベルを重ならないようにレンダリングできず、Axis オブジェクトによりラベルのセットが減らされるようにする場合に起動されます。
DateTimeAxis
 Inherited
軸を使用する各 DataTransform が、その軸に自動的に登録されます。
AxisBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher オブジェクトからリスナーを削除します。
EventDispatcher
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
  
transformCache(cache:Array, field:String, convertedField:String):void
[オーバーライド] 値のセットをデータ領域からスクリーン領域にマップします。
DateTimeAxis
 Inherited
軸を使用する各 DataTransform が、その軸に自動的に登録されます。
AxisBase
 Inherited
グラフを更新します。
NumericAxis
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
 Inherited
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。
EventDispatcher
プロテクトメソッド
 メソッド定義元
 Inherited
adjustMinMax(minValue:Number, maxValue:Number):void
軸のラベルの生成または割り当て範囲を調整します。
NumericAxis
 Inherited
軸の現在の値を表すラベルで labelCache プロパティの値を設定します。
NumericAxis
  
[オーバーライド] この軸によって生成される小さな目盛りの配列に対する位置の配列を構築します。
DateTimeAxis
 Inherited
describeData(requiredFields:uint):Array
この IChartElement で表されるデータの記述を取得するために、管理する DataTransform によって呼び出されます。
AxisBase
  
軸が日を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
  
軸がミリ秒を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
  
軸が分を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
  
軸が月を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
  
軸が秒を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
  
軸が年を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。
DateTimeAxis
 Inherited
この軸タイプについて、所定の範囲を無効な値から保護します。
NumericAxis
 Inherited
この軸の値を表すキャッシュされたラベルおよび目盛りを無効化します。
NumericAxis
イベント
 イベント 概要 定義元
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。EventDispatcher
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。EventDispatcher
プロパティの詳細

alignLabelsToUnits

プロパティ
alignLabelsToUnits:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸に沿ったラベルの配置を決定します。

false の場合は、グラフでは常に軸の先頭にラベルが表示されます。 例えば、月ごとのラベルを生成する場合に、最初のデータポイントが 7 月 14 日であれば、最初のラベルは 7 月 14 日のものとなります。 true の場合は、まずラベルの単位が計算されてから、この単位の整数の間隔にラベルが表示されます。 例えば、最初のデータポイントが 7 月 14 日であり、ラベル単位を月にしている場合は(明示的に設定、または動的に計算)、最初のラベルは 8 月 1 日となります。

デフォルト値: true。



実装
    public function get alignLabelsToUnits():Boolean
    public function set alignLabelsToUnits(value:Boolean):void

dataInterval

プロパティ 
dataInterval:Number  [書き込み専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

dataUnits で指定されたグラフ内のデータ間の間隔を指定します。

例えば、dataUnits プロパティが "hours" に、dataInterval プロパティが 4 に設定されている場合、グラフではデータが 3 時間おきに発生すると見なされます。 これは、一部の系列(ColumnSeries および CandlestickSeries など)によるデータのレンダリングに影響を及ぼします。 また、ラベルの自動選択方法にも影響します。



実装
    public function set dataInterval(value:Number):void

関連する API エレメント

dataUnits

プロパティ 
dataUnits:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

グラフ内でデータの表示に使用する単位を指定します。 指定できる値は、以下のいずれかです。

  • milliseconds
  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years

この値は、次の 2 つの方法で使用することができます。 まず、適切なラベル単位を選択する場合、DateTimeAxis では、データが表示されている単位より小さい単位は選択されません。 dataUnits プロパティの値が days の場合、最小値と最大値の間の範囲にかかわらず、グラフでは時間ごとのラベルはレンダリングされません。

次に、dataUnits プロパティの値はいくつかの系列で使用され、それらの系列のレンダリングに影響します。 具体的には、ほとんどの縦棒系列(ColumnSeries、BarSeries、CandlestickSeries、および HLOCSeries など)で dataUnits プロパティにより、レンダリングされる縦棒の幅が決定されます。

例えば、ColumnChart コントロールの水平軸で labelUnits プロパティが weeks に、dataUnits プロパティが days に設定されている場合は、ColumnChart により、各縦棒が各ラベル間の間隔の 1/7 でレンダリングされます。

dataUnits プロパティを null に設定すると、縦棒系列により日単位で縦棒がレンダリングされますが、DateTimeAxis により、ラベルの生成時に適切な単位が選択されます。

デフォルト値: null。



実装
    public function get dataUnits():String
    public function set dataUnits(value:String):void

disabledDays

プロパティ 
disabledDays:Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

無効にする曜日です。指定した曜日に該当するその月のすべての日付が無効になります。この配列のエレメントは 0(日曜日)から 6(土曜日)の範囲の値です。 例えば、[ 0, 6 ] という値を設定すると、日曜日と土曜日が無効になります。



実装
    public function get disabledDays():Array
    public function set disabledDays(value:Array):void

disabledRanges

プロパティ 
disabledRanges:Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

1 日または複数の日を無効にします。

このプロパティは、パラメーターとしてオブジェクトの配列を受け入れます。 この配列にあるオブジェクトはそれぞれ Date オブジェクトです。無効にする 1 日を指定するか、あるいは、Date オブジェクトの値を持つ rangeStart プロパティおよび rangeEnd プロパティのいずれか一方または両方を含むオブジェクトを指定します。 これらのプロパティの値は、日付範囲の先頭と末尾を示します。 いずれかのプロパティを省略した場合、そちら側の境界には制限がなくなります。 rangeStart のみを指定した場合は、rangeStart の日付を含めて、指定した日付より後の日付がすべて無効になります。 rangeEnd のみを指定した場合は、rangeEnd の日付を含めて、指定した日付より前の日付がすべて無効になります。 1 日のみを無効にするには、Array 内の日付を指定する単一の Date オブジェクトを使用します。

次の例では、2006 年 1 月 11 日と、2006 年 1 月 23 日 ~ 2 月 10 日の範囲、および 2006 年 3 月 1 日以降のすべての日付を無効にしています。

disabledRanges="{[ new Date(2006,0,11), {rangeStart: new Date(2006,0,23), rangeEnd: new Date(2006,1,10)}, {rangeStart: new Date(2006,2,1)} ]}"

デフォルト値: []。



実装
    public function get disabledRanges():Array
    public function set disabledRanges(value:Array):void

displayLocalTime

プロパティ 
displayLocalTime:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

true に設定された場合は、DateTimeAxis により、すべてのデータ値がアプリケーションを実行するクライアントマシンのタイムゾーンにあると見なされます。 false に設定された場合、すべての値は世界標準時(グリニッジ標準時)になります。



実装
    public function get displayLocalTime():Boolean
    public function set displayLocalTime(value:Boolean):void

interval

プロパティ 
interval:Number

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸に沿ったラベル間の labelUnits の数を指定します。 このプロパティが null に設定されている場合、Flex により間隔が計算されます。

デフォルト値: null。



実装
    public function get interval():Number
    public function set interval(value:Number):void

labelUnits

プロパティ 
labelUnits:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸によりラベルの生成に使用される単位です。 デフォルトでは、DateTimeAxis ではすべての有効な単位(millisecondssecondsminuteshoursdaysweeksmonths、または years)が考慮されます。

ただし、labelUnits プロパティが設定されていない場合は、グラフでのラベルのレンダリングに、dataUnits プロパティの値より小さい単位は使用されません。



実装
    public function get labelUnits():String
    public function set labelUnits(value:String):void

maximum

プロパティ 
maximum:Date

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸のラベルの最大値を指定します。 null の場合は、グラフのデータから最小値が決定されます。

デフォルト値: null。



実装
    public function get maximum():Date
    public function set maximum(value:Date):void

minimum

プロパティ 
minimum:Date

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸のラベルの最小値を指定します。 null の場合は、グラフのデータから最小値が決定されます。

デフォルト値: null。



実装
    public function get minimum():Date
    public function set minimum(value:Date):void

minorTickInterval

プロパティ 
minorTickInterval:Number

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸に沿った小さな目盛りの間の minorTickUnits の数を指定します。 このプロパティが NaN に設定されている場合は、DateTimeAxis により自動的に計算されます。

通常は、minorTickInterval プロパティが自動的に 1 に設定されます。 ただし、minorTickUnits プロパティが dataUnits プロパティと(明示的な設定または暗黙の計算により)同じ単位である場合は、minorTickInterval プロパティが最大値の 1 または dataInterval となります。



実装
    public function get minorTickInterval():Number
    public function set minorTickInterval(value:Number):void

minorTickUnits

プロパティ 
minorTickUnits:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

小さな目盛りの生成時に、軸により考慮される単位です。 デフォルトでは、DateTimeAxis ではすべての有効な単位(millisecondssecondsminuteshoursdaysweeksmonths、または years)が考慮されます。

このプロパティが設定されていない場合は、グラフにより minorTickUnits プロパティの値が決定されます。 ラベルの間隔が 1 より大きい場合は、minorTickUnits プロパティが labelUnits プロパティの値に、minorTickInterval プロパティが 1 に設定されます。ラベル間隔が 1 の場合は、minorTickUnits プロパティが labelUnits プロパティの次に小さい単位に設定されます。 設定された場合は、minorTickUnits プロパティが dataUnits プロパティの値より小さくなることはありません。



実装
    public function get minorTickUnits():String
    public function set minorTickUnits(value:String):void

parseFunction

プロパティ 
parseFunction:Function[オーバーライド]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

データポイントの値をカスタマイズするメソッドを指定します。このプロパティを使用して、値を受け入れて Date オブジェクトを返すメソッドを指定します。その後で、Date オブジェクトをグラフの DateTimeAxis オブジェクトの中で使用します。これにより、カスタマイズ可能な日付入力ストリングを提供して、これを Date オブジェクトに変換できます。Flex はこの Date オブジェクトを解釈し、DateTimeAxis で使用できます。

解析メソッドには、1 つのパラメーターのみが渡されます。 このパラメーターは、データ系列に指定したデータポイントの値です。 通常は、何らかの形式の日付を表すストリングです。このパラメーターをオーバーライドすることも、他のパラメーターを追加することもできません。

この Date オブジェクトは直ちに数値に変換されるため、カスタム parseFunctions は同じ Date オブジェクトを再使用することができ、パフォーマンスの向上に役立ちます。 デフォルトでは、DateTimeAxis には、ECMA 標準 Date.parse() メソッドのストリング解析機能が使用されます。

次の例では、{ yyyy, mm, dd } という形式の日付オブジェクトを定義するデータプロバイダーを使用します。 parseFunction によって指定されたメソッドはこの値を使用して、軸で使用可能な Date オブジェクトを作成します。
      <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>
      



実装
    override public function get parseFunction():Function
    override public function set parseFunction(value:Function):void

requiredDescribedFields

プロパティ 
requiredDescribedFields:uint  [読み取り専用] [オーバーライド]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

この軸に影響する DescribeData 構造体のフィールドです。



実装
    override protected function get requiredDescribedFields():uint

unitSize

プロパティ 
unitSize:Number  [読み取り専用] [オーバーライド]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

ピクセルで表された 1 つのデータ単位の幅です。 データ型は dataUnits プロパティの値により決定されます。



実装
    override public function get unitSize():Number
コンストラクターの詳細

DateTimeAxis

()コンストラクター
public function DateTimeAxis()

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

コンストラクターです。

メソッドの詳細

buildMinorTickCache

()メソッド
override protected function buildMinorTickCache():Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

この軸によって生成される小さな目盛りの配列に対する位置の配列を構築します。 サブクラスでこの関数を実装する必要があります。この関数は、NumericAxis によって自動的に呼び出されます。 この関数を直接呼び出すのではなく、minorTicks プロパティにアクセスする必要があります。

戻り値
Array — 小さな目盛りがレンダリングされる箇所の、軸の最小値と最大値の間のポイントを表す 0 から 1 までの位置の配列です。

filterCache

()メソッド 
override public function filterCache(cache:Array, field:String, filteredField:String):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

任意のタイプの値のセットにフィルターをかけ、マップできる数字のセットにします。

パラメーター

cache:Array — 変換された値の読み取り元および保管先であるオブジェクトの配列です。
 
field:String — フィルターの適用前の値を含む、キャッシュ配列の中のオブジェクトのフィールドです。
 
filteredField:String — フィルターが適用された値の保管先となる、キャッシュ配列の中のオブジェクトのフィールドです。

formatDays

()メソッド 
protected function formatDays(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸が日を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

formatMilliseconds

()メソッド 
protected function formatMilliseconds(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸がミリ秒を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

formatMinutes

()メソッド 
protected function formatMinutes(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸が分を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

formatMonths

()メソッド 
protected function formatMonths(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸が月を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

formatSeconds

()メソッド 
protected function formatSeconds(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸が秒を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

formatYears

()メソッド 
protected function formatYears(d:Date, previousValue:Date, axis:mx.charts:DateTimeAxis):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

軸が年を基準にした labelUnits でレンダリングされるときに使用されるデフォルトのフォーマット関数です。 カスタム DateTimeAxis クラスを作成する場合は、このメソッドをオーバーライドして代替のデフォルト書式を提供することができます。

このメソッドは直接呼び出さないでください。 代わりに、このメソッドが呼び出された後、ラベルがレンダリングされ、表示する適切なストリングが取得されます。

パラメーター

d:Date — 書式設定する単位を格納する Date オブジェクトです。
 
previousValue:Date — 現在のデータポイントより前に出現するデータポイントを格納する Date オブジェクトです。
 
axis:mx.charts:DateTimeAxis — ラベルをレンダリングする DateTimeAxis オブジェクト。

戻り値
String — 書式設定したラベルです。

reduceLabels

()メソッド 
override public function reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

AxisRenderer がラベルを重ならないようにレンダリングできず、Axis オブジェクトによりラベルのセットが減らされるようにする場合に起動されます。 重なった 2 つのラベルがメソッドに渡されます。

パラメーター

intervalStart:AxisLabel — ラベルが重なる間隔の始まりです。
 
intervalEnd:AxisLabel — ラベルが重なる間隔の終わりです。

戻り値
AxisLabelSet — ラベルの数を減らして重複を解決する新しいラベルのセットです。

transformCache

()メソッド 
override public function transformCache(cache:Array, field:String, convertedField:String):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: Flash Player 9, AIR 1.1

値のセットをデータ領域からスクリーン領域にマップします。

パラメーター

cache:Array — マップされた値の読み取り元および保管先であるオブジェクトの配列です。
 
field:String — マップ前の値を含む、キャッシュ配列の中のオブジェクトのフィールドです。
 
convertedField:String — マップされた値の保管先となる、キャッシュ配列の中のオブジェクトのフィールドです。

DateTimeAxisExample.mxml
<?xml version="1.0"?>
<!-- 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>




[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。