CsfWebChart » History » Version 1
Wil van Antwerpen, 01/07/2023 11:53 AM
1 | 1 | Wil van Antwerpen | # CsfWebChart |
---|---|---|---|
2 | 1 | Wil van Antwerpen | |
3 | 1 | Wil van Antwerpen | ## Line Chart Demo |
4 | 1 | Wil van Antwerpen | |
5 | 1 | Wil van Antwerpen | ![](https://support.dataaccess.com/Forums/attachment.php?attachmentid=15862&d=1672532300) |
6 | 1 | Wil van Antwerpen | |
7 | 1 | Wil van Antwerpen | The DataFlex code for the above looks like |
8 | 1 | Wil van Antwerpen | |
9 | 1 | Wil van Antwerpen | ~~~ text |
10 | 1 | Wil van Antwerpen | |
11 | 1 | Wil van Antwerpen | Object oFirstSeries is a csfWebChartSeries |
12 | 1 | Wil van Antwerpen | Object oFirstMarkers is a csfWebChartMarkerSettings |
13 | 1 | Wil van Antwerpen | Set pbVisible to True |
14 | 1 | Wil van Antwerpen | Object oFirstDataLabel is a csfWebChartDataLabelSettings |
15 | 1 | Wil van Antwerpen | Set pbVisible to True |
16 | 1 | Wil van Antwerpen | Set psPosition to "Top" |
17 | 1 | Wil van Antwerpen | Set psAlignment to "Near" |
18 | 1 | Wil van Antwerpen | End_Object |
19 | 1 | Wil van Antwerpen | End_Object |
20 | 1 | Wil van Antwerpen | Procedure OnAddChartData |
21 | 1 | Wil van Antwerpen | Send AddPoint 1 2 |
22 | 1 | Wil van Antwerpen | Send AddPoint 2 3.6 |
23 | 1 | Wil van Antwerpen | Send AddPoint 3 7 |
24 | 1 | Wil van Antwerpen | Send AddPoint 4 6 |
25 | 1 | Wil van Antwerpen | End_Procedure |
26 | 1 | Wil van Antwerpen | End_Object |
27 | 1 | Wil van Antwerpen | Object oSecondSeries is a csfWebChartSeries |
28 | 1 | Wil van Antwerpen | Object oSecondMarkers is a csfWebChartMarkerSettings |
29 | 1 | Wil van Antwerpen | Set pbVisible to True |
30 | 1 | Wil van Antwerpen | Set psShape to "Diamond" |
31 | 1 | Wil van Antwerpen | Object oSecondDataLabel is a csfWebChartDataLabelSettings |
32 | 1 | Wil van Antwerpen | Set pbVisible to True |
33 | 1 | Wil van Antwerpen | Set psPosition to "Bottom" |
34 | 1 | Wil van Antwerpen | Set psAlignment to "Far" |
35 | 1 | Wil van Antwerpen | End_Object |
36 | 1 | Wil van Antwerpen | End_Object |
37 | 1 | Wil van Antwerpen | Procedure OnAddChartData |
38 | 1 | Wil van Antwerpen | Send AddPoint 1 1 |
39 | 1 | Wil van Antwerpen | Send AddPoint 2 3 |
40 | 1 | Wil van Antwerpen | Send AddPoint 3 5 |
41 | 1 | Wil van Antwerpen | Send AddPoint 4 8 |
42 | 1 | Wil van Antwerpen | End_Procedure |
43 | 1 | Wil van Antwerpen | End_Object |
44 | 1 | Wil van Antwerpen | End_Object |
45 | 1 | Wil van Antwerpen | |
46 | 1 | Wil van Antwerpen | ~~~ |
47 | 1 | Wil van Antwerpen | |
48 | 1 | Wil van Antwerpen | The Series object has your data. |
49 | 1 | Wil van Antwerpen | There are markers (the diamond shapes and the dots) to indicate your data point. |
50 | 1 | Wil van Antwerpen | There's also a DataLabel to display the actual value of your data point. |
51 | 1 | Wil van Antwerpen | |
52 | 1 | Wil van Antwerpen | You put the marker object in your series object and customize that… then if you want to do something specific with the dataLabel you add a datalabel object in that and tweak the settings for it. |
53 | 1 | Wil van Antwerpen | DataLabel as well as Marker objects are both optional. |
54 | 1 | Wil van Antwerpen | |
55 | 1 | Wil van Antwerpen | This pretty much matches the JSON object definitions as is documented over at SyncFusion. |
56 | 1 | Wil van Antwerpen | |
57 | 1 | Wil van Antwerpen | |
58 | 1 | Wil van Antwerpen | |
59 | 1 | Wil van Antwerpen | |
60 | 1 | Wil van Antwerpen | ## Bar Chart Demo |
61 | 1 | Wil van Antwerpen | |
62 | 1 | Wil van Antwerpen | ![](https://support.dataaccess.com/Forums/attachment.php?attachmentid=15863&d=1672532319) |
63 | 1 | Wil van Antwerpen | |
64 | 1 | Wil van Antwerpen | The DataFlex code looks like: |
65 | 1 | Wil van Antwerpen | |
66 | 1 | Wil van Antwerpen | ~~~ text |
67 | 1 | Wil van Antwerpen | |
68 | 1 | Wil van Antwerpen | ~~~ |