CsfWebAccumulationChart » History » Version 3
Wil van Antwerpen, 01/07/2023 11:59 AM
| 1 | 1 | Wil van Antwerpen | # CsfWebAccumulationChart |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | 2 | Wil van Antwerpen |  |
| 5 | 3 | Wil van Antwerpen | |
| 6 | The code for the above looks like: |
||
| 7 | |||
| 8 | ~~~ text |
||
| 9 | |||
| 10 | |||
| 11 | Object oWebPieChart is a csfWebAccumulationChart |
||
| 12 | Set piHeight to 400 |
||
| 13 | Set piColumnSpan to 12 |
||
| 14 | Set psTitle to "demo Pie Chart" |
||
| 15 | Set pbTooltip to True |
||
| 16 | //Object oBarArea is a csfWebChartArea |
||
| 17 | // Set psBackground to "cornSilk" |
||
| 18 | // //Set psBorderColor to "green" |
||
| 19 | // //Set piBorderWidth to 2 |
||
| 20 | //End_Object |
||
| 21 | Object oDataSeries is a csfWebChartAccumulationSeries |
||
| 22 | Set psInnerRadius to "40%" |
||
| 23 | Set piStartAngle to 0 |
||
| 24 | Set piEndAngle to 360 |
||
| 25 | Set psSelectionMode to "Point" |
||
| 26 | Set psName to "Revenue" |
||
| 27 | Set pbDataLabelVisible to True // temporary hack (might change) |
||
| 28 | Procedure OnAddChartData |
||
| 29 | Send AddPoint "Net-tution" 21 "21%" |
||
| 30 | Send AddPoint "Private Gifts" 8 "8%" |
||
| 31 | Send AddPoint "All Other" 9 "9%" |
||
| 32 | Send AddPoint "Local Revenue" 4 "4%" |
||
| 33 | Send AddPoint "State Revenue" 21 "21%" |
||
| 34 | Send AddPoint "Federal Revenue" 16 "16%" |
||
| 35 | Send AddPoint "Self-supporting Operations" 21 "21%" |
||
| 36 | End_Procedure |
||
| 37 | End_Object |
||
| 38 | End_Object |
||
| 39 | |||
| 40 | |||
| 41 | ~~~ |