Rev | Line | |
---|
[7849] | 1 | package charts.series.pies {
|
---|
| 2 |
|
---|
| 3 | public class DefaultPieProperties extends Properties
|
---|
| 4 | {
|
---|
| 5 |
|
---|
| 6 | public function DefaultPieProperties(json:Object) {
|
---|
| 7 | // tr.ace_json(json);
|
---|
| 8 |
|
---|
| 9 | // the user JSON can override any of these:
|
---|
| 10 | var parent:Properties = new Properties( {
|
---|
| 11 | alpha: 0.5,
|
---|
| 12 | 'start-angle': 90,
|
---|
| 13 | 'label-colour': null, // null means use colour of the slice
|
---|
| 14 | 'font-size': 10,
|
---|
| 15 | 'gradient-fill': false,
|
---|
| 16 | stroke: 1,
|
---|
| 17 | colours: ["#900000", "#009000"], // slices colours
|
---|
| 18 | animate: [{"type":"fade-in"}],
|
---|
| 19 | tip: '#val# of #total#', // #percent#, #label#
|
---|
| 20 | 'no-labels': false,
|
---|
| 21 | 'on-click': null
|
---|
| 22 | } );
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | super( json, parent );
|
---|
| 27 |
|
---|
| 28 | tr.aces('4', this.get('start-angle'));
|
---|
| 29 | // tr.aces('4', this.get('colour'));
|
---|
| 30 | // tr.aces('4', this.get('type'));
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.