YAxisLeft.as 756 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package elements.axis {
  2. import flash.display.Sprite;
  3. public class YAxisLeft extends YAxisBase {
  4. function YAxisLeft() {}
  5. public override function init(json:Object): void {
  6. this.labels = new YAxisLabelsLeft(json);
  7. this.addChild( this.labels );
  8. //
  9. // default values for a left axis
  10. //
  11. var style:Object = {
  12. stroke: 2,
  13. 'tick-length': 3,
  14. colour: '#784016',
  15. offset: false,
  16. 'grid-colour': '#F5E1AA',
  17. 'grid-visible': true,
  18. '3d': 0,
  19. steps: 1,
  20. visible: true,
  21. min: 0,
  22. max: null
  23. };
  24. super._init(json, 'y_axis', style);
  25. }
  26. public override function resize( label_pos:Number, sc:ScreenCoords ):void {
  27. super.resize_helper( label_pos, sc, false);
  28. }
  29. }
  30. }