CsfWebAccumulationChart » History » Version 6
Wil van Antwerpen, 04/08/2025 12:30 PM
| 1 | 1 | Wil van Antwerpen | # CsfWebAccumulationChart |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | 6 | 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 | ~~~ |
||
| 42 | 4 | Wil van Antwerpen | |
| 43 | ## Synfusion direct links |
||
| 44 | |||
| 45 | Documentation for the API is here: |
||
| 46 | |||
| 47 | * https://ej2.syncfusion.com/documentation/api/accumulation-chart/overview/ |
||
| 48 | |||
| 49 | Tips & tricks here: |
||
| 50 | |||
| 51 | * https://ej2.syncfusion.com/javascript/documentation/accumulation-chart/es5-getting-started/ |
||
| 52 | |||
| 53 | SyncFusion Chart control demo: |
||
| 54 | |||
| 55 | 5 | Wil van Antwerpen | * https://ej2.syncfusion.com/javascript/demos/#/fluent2/chart/default-pie.html |