Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/open-flash-chart/actionscript/YTicks.as')
-rw-r--r--libs/open-flash-chart/actionscript/YTicks.as21
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/open-flash-chart/actionscript/YTicks.as b/libs/open-flash-chart/actionscript/YTicks.as
new file mode 100644
index 0000000000..fb1f7a2c9f
--- /dev/null
+++ b/libs/open-flash-chart/actionscript/YTicks.as
@@ -0,0 +1,21 @@
+class YTicks
+{
+ // default tick sizes (small,big,big every step):
+ public var big:Number = 5;
+ public var small:Number = 2;
+ public var steps:Number = 2;
+
+ function YTicks( lv:LoadVars )
+ {
+ if( lv.y_ticks != undefined )
+ {
+ var ticks:Array = lv.y_ticks.split(',');
+ if( ticks.length == 3 )
+ {
+ this.small = Number(ticks[0]);
+ this.big = Number(ticks[1]);
+ this.steps = Number(ticks[2]);
+ }
+ }
+ }
+} \ No newline at end of file