Line | |
---|
1 | package charts.series.dots {
|
---|
2 |
|
---|
3 | public class DefaultDotProperties extends Properties
|
---|
4 | {
|
---|
5 | //
|
---|
6 | // things that all dots share
|
---|
7 | //
|
---|
8 | public function DefaultDotProperties(json:Object, colour:String, axis:String) {
|
---|
9 | // tr.ace_json(json);
|
---|
10 |
|
---|
11 | // the user JSON can override any of these:
|
---|
12 | var parent:Properties = new Properties( {
|
---|
13 | axis: axis,
|
---|
14 | 'type': 'dot',
|
---|
15 | 'dot-size': 5,
|
---|
16 | 'halo-size': 2,
|
---|
17 | 'colour': colour,
|
---|
18 | 'tip': '#val#',
|
---|
19 | alpha: 1,
|
---|
20 | // this is for anchors:
|
---|
21 | rotation: 0,
|
---|
22 | sides: 3,
|
---|
23 | // this is for hollow dot:
|
---|
24 | width: 1
|
---|
25 | } );
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 | super( json, parent );
|
---|
30 |
|
---|
31 | tr.aces('4', this.get('axis'));
|
---|
32 | // tr.aces('4', this.get('colour'));
|
---|
33 | // tr.aces('4', this.get('type'));
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.