Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to Lug Wyrm Charmer version of Ruby
- Loading branch information
Pullmonkey
committed
Jan 4, 2010
1 parent
e19e239
commit 2c6bfa3
Showing
15 changed files
with
172 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
module OpenFlashChart | ||
class BarBase < Base; end | ||
class BarBase < Base | ||
def attach_to_right_y_axis | ||
@axis = 'right' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,67 @@ | ||
module OpenFlashChart | ||
|
||
class BarOnShow < Base | ||
def initialize(type, cascade, delay) | ||
@type = type | ||
@cascade = cascade.to_f | ||
@delay = delay.to_f | ||
end | ||
end | ||
|
||
class BarGlass < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_glass" | ||
end | ||
end | ||
|
||
class BarCylinder < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_cylinder" | ||
end | ||
end | ||
|
||
class BarCylinderOutline < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_cylinder_outline" | ||
end | ||
end | ||
|
||
class BarRoundedGlass < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_rounded_glass" | ||
end | ||
end | ||
|
||
class BarRound < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_round" | ||
end | ||
end | ||
|
||
class BarDome < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_dome" | ||
end | ||
end | ||
|
||
class BarRound3d < BarBase | ||
def initialize args={} | ||
super | ||
@type = "bar_round3d" | ||
end | ||
end | ||
|
||
class BarGlassValue < Base | ||
def initialize(top, args={}) | ||
@top = top | ||
super args | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
module OpenFlashChart | ||
|
||
class Candle < Base | ||
def initialize(args={}) | ||
def initialize(colour, negative_colour, args={}) | ||
@colour = colour | ||
@negative_colour = negative_colour | ||
super args | ||
@type = "candle" | ||
end | ||
end | ||
|
||
class CandleValue < Base | ||
def initialize( top, bottom, low, high, args={} ) | ||
@top = top | ||
@bottom = bottom | ||
def initialize( high, open, close low, args={} ) | ||
@top = open | ||
@bottom = close | ||
@low = low | ||
@high = high | ||
super args | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
module OpenFlashChart | ||
|
||
class LineOnShow < Base | ||
def initialize(type, cascade, delay) | ||
@type = type | ||
@cascade = cascade.to_F | ||
@delay = delay.to_f | ||
end | ||
end | ||
|
||
class Line < LineBase | ||
def initialize args={} | ||
super | ||
@type = "line" | ||
@values = [] | ||
end | ||
|
||
def set_default_dot_style(style) | ||
@dot_style = style | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
module OpenFlashChart | ||
|
||
class ScatterLine < Base | ||
def initialize(colour, dot_size, args={}) | ||
def initialize(colour, width, args={}) | ||
super args | ||
@type = 'scatter_line' | ||
@colour = colour | ||
@dot_size = dot_size | ||
@width = width | ||
end | ||
|
||
def set_step_horizonal | ||
@stepgraph = 'horizontal' | ||
end | ||
|
||
def set_step_vertical | ||
@stepgraph = 'vertical' | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
module OpenFlashChart | ||
class YAxisBase < Base; end | ||
class YAxisBase < Base | ||
def set_vertical | ||
@rotate = "vertical" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module OpenFlashChart | ||
class YAxisRight < YAxisBase; end | ||
class YAxisRight < YAxisBase | ||
end | ||
end |