source: code/Website/open-flash-chart/elements/axis/YAxisLeft.as@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 793 bytes
Line 
1package elements.axis {
2 import flash.display.Sprite;
3
4 public class YAxisLeft extends YAxisBase {
5
6 function YAxisLeft() {}
7
8 public override function init(json:Object): void {
9
10 this.labels = new YAxisLabelsLeft(json);
11 this.addChild( this.labels );
12
13 //
14 // default values for a left axis
15 //
16 var style:Object = {
17 stroke: 2,
18 'tick-length': 3,
19 colour: '#784016',
20 offset: false,
21 'grid-colour': '#F5E1AA',
22 'grid-visible': true,
23 '3d': 0,
24 steps: 1,
25 visible: true,
26 min: 0,
27 max: null
28 };
29
30 super._init(json, 'y_axis', style);
31 }
32
33 public override function resize( label_pos:Number, sc:ScreenCoords ):void {
34
35 super.resize_helper( label_pos, sc, false);
36 }
37 }
38}
Note: See TracBrowser for help on using the repository browser.