HLOCChart Demo : HLOCChart « Chart « Flex






HLOCChart Demo

HLOCChart Demo
          
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

  <mx:Model id="financialModel">
    <data>
        <row>
          <quarter>1</quarter>
          <open>3</open>
          <close>2</close>
          <high>4</high>
          <low>1</low>
        </row>
        <row>
          <quarter>2</quarter>
          <open>2</open>
          <close>3</close>
          <high>6</high>
          <low>1</low>
        </row>
        <row>
          <quarter>3</quarter>
          <open>3</open>
          <close>6</close>
          <high>14</high>
          <low>9</low>
        </row>
    </data>  
  </mx:Model>
  <mx:ArrayCollection id="financialData" source="{financialModel.row}"/>
    <mx:Panel title="HLOC Chart" height="100%" width="100%">
      <mx:HLOCChart dataProvider="{financialData}" height="100%" width="100%">
        <mx:horizontalAxis>
          <mx:LinearAxis minimum="-1" maximum="3" interval="1"/>
        </mx:horizontalAxis>
        <mx:series>
          <mx:HLOCSeries dataProvider="{financialData}" highField="high" lowField="low" openField="open" closeField="close">
            <mx:stroke>
              <mx:SolidColorStroke color="black" weight="3"/>
            </mx:stroke>
            <mx:openTickStroke>
              <mx:SolidColorStroke color="black" weight="3"/>
            </mx:openTickStroke>
            <mx:closeTickStroke>
              <mx:SolidColorStroke color="black" weight="3"/>
            </mx:closeTickStroke>
          </mx:HLOCSeries>
        </mx:series>
      </mx:HLOCChart>
    </mx:Panel>

  
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Defining AxisRenderer properties with strokesDefining AxisRenderer properties with strokes
2.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
3.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
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