Rev | Line | |
---|
[7849] | 1 | package charts {
|
---|
| 2 |
|
---|
| 3 | import string.Utils;
|
---|
| 4 | import charts.series.dots.DefaultDotProperties;
|
---|
| 5 |
|
---|
| 6 | public class Scatter extends ScatterBase
|
---|
| 7 | {
|
---|
| 8 | public function Scatter( json:Object )
|
---|
| 9 | {
|
---|
| 10 | super(json);
|
---|
| 11 |
|
---|
| 12 | this.style = {
|
---|
| 13 | values: [],
|
---|
| 14 | width: 2,
|
---|
| 15 | colour: '#3030d0',
|
---|
| 16 | text: '', // <-- default not display a key
|
---|
| 17 | 'font-size': 12,
|
---|
| 18 | tip: '[#x#,#y#] #size#',
|
---|
| 19 | axis: 'left'
|
---|
| 20 | };
|
---|
| 21 |
|
---|
| 22 | // hack: keep this incase the merge kills it, we'll
|
---|
| 23 | // remove the merge later (and this hack)
|
---|
| 24 | var tmp:Object = json['dot-style'];
|
---|
| 25 |
|
---|
| 26 | object_helper.merge_2( json, style );
|
---|
| 27 |
|
---|
| 28 | this.default_style = new DefaultDotProperties(
|
---|
| 29 | json['dot-style'], this.style.colour, this.style.axis);
|
---|
| 30 |
|
---|
| 31 | this.line_width = style.width;
|
---|
| 32 | this.colour = string.Utils.get_colour( style.colour );
|
---|
| 33 | this.key = style.text;
|
---|
| 34 | this.font_size = style['font-size'];
|
---|
| 35 | this.circle_size = style['dot-size'];
|
---|
| 36 |
|
---|
| 37 | this.values = style.values;
|
---|
| 38 |
|
---|
| 39 | this.add_values();
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.