Skip to content

Commit 970e4ad

Browse files
authored
Charts: update date in demos (part 3) (#32907)
1 parent 6ec2574 commit 970e4ad

158 files changed

Lines changed: 3109 additions & 3067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
type="area"
2222
[showMinMax]="true"
2323
>
24-
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
24+
<dxo-sparkline-tooltip
25+
[format]="{ type: 'currency', precision: 2 }"
26+
></dxo-sparkline-tooltip>
2527
</dx-sparkline>
2628
</td>
2729
<td>
@@ -38,7 +40,9 @@
3840
[showMinMax]="true"
3941
[showFirstLast]="false"
4042
>
41-
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
43+
<dxo-sparkline-tooltip
44+
[format]="{ type: 'currency', precision: 2 }"
45+
></dxo-sparkline-tooltip>
4246
</dx-sparkline>
4347
</td>
4448
<td>
@@ -54,7 +58,9 @@
5458
pointColor="#e8c267"
5559
pointSymbol="polygon"
5660
>
57-
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
61+
<dxo-sparkline-tooltip
62+
[format]="{ type: 'currency', precision: 2 }"
63+
></dxo-sparkline-tooltip>
5864
</dx-sparkline>
5965
</td>
6066
</tr>

apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class AppComponent {
3535
this.copperCosts = service.getCopperCosts();
3636
this.nickelCosts = service.getNickelCosts();
3737
this.palladiumCosts = service.getPalladiumCosts();
38-
this.years = [2010, 2011, 2012];
38+
this.years = [2021, 2022, 2023];
3939
}
4040
}
4141

apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.service.ts

Lines changed: 111 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -3,197 +3,197 @@ import { Injectable } from '@angular/core';
33
export class CostInfo {
44
month: number;
55

6-
2010: number;
6+
2021: number;
77

8-
2011: number;
8+
2022: number;
99

10-
2012: number;
10+
2023: number;
1111
}
1212

1313
const copperCosts: CostInfo[] = [{
1414
month: 1,
15-
2010: 7341,
16-
2011: 9585,
17-
2012: 7501,
15+
2021: 7970.50,
16+
2022: 9775.93,
17+
2023: 8999.79,
1818
}, {
1919
month: 2,
20-
2010: 7016,
21-
2011: 10026,
22-
2012: 8470,
20+
2021: 8460.25,
21+
2022: 9941.35,
22+
2023: 8955.20,
2323
}, {
2424
month: 3,
25-
2010: 7202,
26-
2011: 9889,
27-
2012: 8591,
25+
2021: 9004.98,
26+
2022: 10237.59,
27+
2023: 8835.72,
2828
}, {
2929
month: 4,
30-
2010: 7851,
31-
2011: 9460,
32-
2012: 8459,
30+
2021: 9335.55,
31+
2022: 10183.13,
32+
2023: 8814.00,
3333
}, {
3434
month: 5,
35-
2010: 7481,
36-
2011: 9373,
37-
2012: 8320,
35+
2021: 10183.97,
36+
2022: 9362.81,
37+
2023: 8234.28,
3838
}, {
3939
month: 6,
40-
2010: 6532,
41-
2011: 9108,
42-
2012: 7465,
40+
2021: 9612.43,
41+
2022: 9033.13,
42+
2023: 8386.23,
4343
}, {
4444
month: 7,
45-
2010: 6498,
46-
2011: 9295,
47-
2012: 7475,
45+
2021: 9433.59,
46+
2022: 7529.79,
47+
2023: 8445.26,
4848
}, {
4949
month: 8,
50-
2010: 7191,
51-
2011: 9834,
52-
2012: 7430,
50+
2021: 9357.19,
51+
2022: 7960.98,
52+
2023: 8351.77,
5353
}, {
5454
month: 9,
55-
2010: 7596,
56-
2011: 9121,
57-
2012: 7614,
55+
2021: 9324.07,
56+
2022: 7734.70,
57+
2023: 8270.86,
5858
}, {
5959
month: 10,
60-
2010: 8057,
61-
2011: 7125,
62-
2012: 8245,
60+
2021: 9778.50,
61+
2022: 7621.21,
62+
2023: 7939.66,
6363
}, {
6464
month: 11,
65-
2010: 8373,
66-
2011: 7871,
67-
2012: 7727,
65+
2021: 9765.48,
66+
2022: 8029.95,
67+
2023: 8173.95,
6868
}, {
6969
month: 12,
70-
2010: 8636,
71-
2011: 7725,
72-
2012: 7880,
70+
2021: 9550.31,
71+
2022: 8367.23,
72+
2023: 8394.11,
7373
}];
7474

7575
const nickelCosts: CostInfo[] = [{
7676
month: 1,
77-
2010: 18974,
78-
2011: 24298,
79-
2012: 18322,
77+
2021: 17847.68,
78+
2022: 22355.40,
79+
2023: 28194.61,
8080
}, {
8181
month: 2,
82-
2010: 18162,
83-
2011: 27929,
84-
2012: 21093,
82+
2021: 18595.30,
83+
2022: 24015.55,
84+
2023: 26727.95,
8585
}, {
8686
month: 3,
87-
2010: 20535,
88-
2011: 28802,
89-
2012: 19701,
87+
2021: 16460.83,
88+
2022: 33924.18,
89+
2023: 23288.61,
9090
}, {
9191
month: 4,
92-
2010: 24562,
93-
2011: 26142,
94-
2012: 17695,
92+
2021: 16480.91,
93+
2022: 33132.74,
94+
2023: 23894.56,
9595
}, {
9696
month: 5,
97-
2010: 26131,
98-
2011: 26753,
99-
2012: 17549,
97+
2021: 17552.45,
98+
2022: 28062.55,
99+
2023: 21970.39,
100100
}, {
101101
month: 6,
102-
2010: 19278,
103-
2011: 23055,
104-
2012: 16436,
102+
2021: 17942.32,
103+
2022: 25658.63,
104+
2023: 21233.28,
105105
}, {
106106
month: 7,
107-
2010: 19475,
108-
2011: 22870,
109-
2012: 16382,
107+
2021: 18819.36,
108+
2022: 21481.89,
109+
2023: 21091.26,
110110
}, {
111111
month: 8,
112-
2010: 20701,
113-
2011: 24388,
114-
2012: 15687,
112+
2021: 19160.23,
113+
2022: 22057.39,
114+
2023: 20438.65,
115115
}, {
116116
month: 9,
117-
2010: 21266,
118-
2011: 21845,
119-
2012: 16085,
117+
2021: 19398.23,
118+
2022: 22773.97,
119+
2023: 19644.64,
120120
}, {
121121
month: 10,
122-
2010: 23358,
123-
2011: 18346,
124-
2012: 18250,
122+
2021: 19420.52,
123+
2022: 22032.89,
124+
2023: 18281.23,
125125
}, {
126126
month: 11,
127-
2010: 23150,
128-
2011: 18822,
129-
2012: 16083,
127+
2021: 19970.43,
128+
2022: 25562.70,
129+
2023: 17027.36,
130130
}, {
131131
month: 12,
132-
2010: 23282,
133-
2011: 17320,
134-
2012: 17104,
132+
2021: 20015.55,
133+
2022: 28946.81,
134+
2023: 16460.84,
135135
}];
136136

137137
const palladiumCosts: CostInfo[] = [{
138138
month: 1,
139-
2010: 398,
140-
2011: 788,
141-
2012: 649,
139+
2021: 2391.20,
140+
2022: 2030.86,
141+
2023: 1734.27,
142142
}, {
143143
month: 2,
144-
2010: 422,
145-
2011: 817,
146-
2012: 698,
144+
2021: 2342.33,
145+
2022: 2350.10,
146+
2023: 1543.90,
147147
}, {
148148
month: 3,
149-
2010: 431,
150-
2011: 812,
151-
2012: 713,
149+
2021: 2525.61,
150+
2022: 2582.78,
151+
2023: 1426.00,
152152
}, {
153153
month: 4,
154-
2010: 481,
155-
2011: 760,
156-
2012: 654,
154+
2021: 2776.45,
155+
2022: 2330.67,
156+
2023: 1508.00,
157157
}, {
158158
month: 5,
159-
2010: 551,
160-
2011: 774,
161-
2012: 665,
159+
2021: 2900.52,
160+
2022: 2060.05,
161+
2023: 1482.61,
162162
}, {
163163
month: 6,
164-
2010: 449,
165-
2011: 775,
166-
2012: 609,
164+
2021: 2752.48,
165+
2022: 1913.05,
166+
2023: 1348.09,
167167
}, {
168168
month: 7,
169-
2010: 442,
170-
2011: 750,
171-
2012: 584,
169+
2021: 2754.76,
170+
2022: 1973.10,
171+
2023: 1264.48,
172172
}, {
173173
month: 8,
174-
2010: 482,
175-
2011: 827,
176-
2012: 580,
174+
2021: 2544.73,
175+
2022: 2135.52,
176+
2023: 1247.30,
177177
}, {
178178
month: 9,
179-
2010: 517,
180-
2011: 776,
181-
2012: 632,
179+
2021: 2130.32,
180+
2022: 2113.95,
181+
2023: 1239.29,
182182
}, {
183183
month: 10,
184-
2010: 566,
185-
2011: 624,
186-
2012: 657,
184+
2021: 2058.48,
185+
2022: 2078.86,
186+
2023: 1142.09,
187187
}, {
188188
month: 11,
189-
2010: 630,
190-
2011: 651,
191-
2012: 601,
189+
2021: 2036.32,
190+
2022: 1911.55,
191+
2023: 1050.27,
192192
}, {
193193
month: 12,
194-
2010: 737,
195-
2011: 615,
196-
2012: 675,
194+
2021: 1810.52,
195+
2022: 1808.36,
196+
2023: 1087.76,
197197
}];
198198

199199
@Injectable()

apps/demos/Demos/Charts/AreaSparklines/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import RowTemplate from './RowTemplate.tsx';
33

4-
const years = ['2010', '2011', '2012'];
4+
const years = ['2021', '2022', '2023'];
55

66
function App() {
77
return (

apps/demos/Demos/Charts/AreaSparklines/React/RowTemplate.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function RowTemplate(props: RowTemplateProps) {
2828
valueField={props.year}
2929
type="area"
3030
>
31-
<Tooltip format="currency" />
31+
<Tooltip format={{ type: 'currency', precision: 2 }} />
3232
</Sparkline>
3333
</td>
3434
<td>
@@ -45,7 +45,7 @@ export default function RowTemplate(props: RowTemplateProps) {
4545
minColor="#6babac"
4646
maxColor="#8076bb"
4747
>
48-
<Tooltip format="currency" />
48+
<Tooltip format={{ type: 'currency', precision: 2 }} />
4949
</Sparkline>
5050
</td>
5151
<td>
@@ -61,7 +61,7 @@ export default function RowTemplate(props: RowTemplateProps) {
6161
pointColor="#e8c267"
6262
pointSymbol="polygon"
6363
>
64-
<Tooltip format="currency" />
64+
<Tooltip format={{ type: 'currency', precision: 2 }} />
6565
</Sparkline>
6666
</td>
6767
</tr>

0 commit comments

Comments
 (0)