Defining AxisRenderer properties with strokes : HLOCChart « Chart « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Chart » HLOCChartScreenshots 
Defining AxisRenderer properties with strokes
Defining AxisRenderer properties with strokes
           

<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->
<!-- charts/AxisRendererStrokes.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    [Bindable]
    public var aapl:Array = [
      {date:"1-Aug-05",open:42.57,high:43.08,low:42.08,close:42.75},
      {date:"2-Aug-05",open:42.89,high:43.5,low:42.61,close:43.19},
      {date:"3-Aug-05",open:43.19,high:43.31,low:42.77,close:43.22},
      {date:"4-Aug-05",open:42.89,high:43,low:42.29,close:42.71},
      {date:"5-Aug-05",open:42.49,high:43.36,low:42.02,close:42.99},
      {date:"8-Aug-05",open:43,high:43.25,low:42.61,close:42.65},
      {date:"9-Aug-05",open:42.93,high:43.89,low:42.91,close:43.82},
      {date:"10-Aug-05",open:44,high:44.39,low:43.31,close:43.38},
      {date:"11-Aug-05",open:43.39,high:44.12,low:43.25,close:44},
      {date:"12-Aug-05",open:43.46,high:46.22,low:43.36,close:46.1},
      ];
    </mx:Script>
  <mx:HLOCChart id="myChart" dataProvider="{aapl}"
    showDataTips="true">
    <mx:horizontalAxisRenderer>
      <mx:AxisRenderer placement="bottom" canDropLabels="true"
        tickPlacement="inside" tickLength="10" minorTickPlacement="inside"
        minorTickLength="5">
        <mx:axisStroke>
          <mx:Stroke color="#000080" weight="1" />
        </mx:axisStroke>
        <mx:tickStroke>
          <mx:Stroke color="#000060" weight="1" />
        </mx:tickStroke>
        <mx:minorTickStroke>
          <mx:Stroke color="#100040" weight="1" />
        </mx:minorTickStroke>
      </mx:AxisRenderer>
    </mx:horizontalAxisRenderer>
    <mx:verticalAxis>
      <mx:LinearAxis minimum="30" maximum="50" />
    </mx:verticalAxis>
    <mx:series>
      <mx:HLOCSeries dataProvider="{aapl}" openField="open"
        highField="high" lowField="low" closeField="close"
        displayName="AAPL">
      </mx:HLOCSeries>
    </mx:series>
  </mx:HLOCChart>
  <mx:Legend dataProvider="{myChart}" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Sets tick marks to the inside of the axis line, sets the tick mark's length to 12 pixels, and hides minor tick marksSets tick marks to the inside of the axis line, sets the tick mark's length to 12 pixels, and hides minor tick marks
2.Change the stroke of the vertical line to 2 (the default value is 1) and the color of all the lines to blackChange the stroke of the vertical line to 2 (the default value is 1) and the color of all the lines to black
3.HLOCChart DemoHLOCChart Demo
4.Create an HLOCChart controlCreate an HLOCChart control
5.High Low Open Close ChartHigh Low Open Close Chart
6.Define the weight and color of the strokes, and then applies those strokes to the chart's AxisRenderer classDefine the weight and color of the strokes, and then applies those strokes to the chart's AxisRenderer class
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.