Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
type="area"
[showMinMax]="true"
>
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
<dxo-sparkline-tooltip
[format]="{ type: 'currency', precision: 2 }"
></dxo-sparkline-tooltip>
</dx-sparkline>
</td>
<td>
Expand All @@ -38,7 +40,9 @@
[showMinMax]="true"
[showFirstLast]="false"
>
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
<dxo-sparkline-tooltip
[format]="{ type: 'currency', precision: 2 }"
></dxo-sparkline-tooltip>
</dx-sparkline>
</td>
<td>
Expand All @@ -54,7 +58,9 @@
pointColor="#e8c267"
pointSymbol="polygon"
>
<dxo-sparkline-tooltip format="currency"></dxo-sparkline-tooltip>
<dxo-sparkline-tooltip
[format]="{ type: 'currency', precision: 2 }"
></dxo-sparkline-tooltip>
</dx-sparkline>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class AppComponent {
this.copperCosts = service.getCopperCosts();
this.nickelCosts = service.getNickelCosts();
this.palladiumCosts = service.getPalladiumCosts();
this.years = [2010, 2011, 2012];
this.years = [2021, 2022, 2023];
}
}

Expand Down
222 changes: 111 additions & 111 deletions apps/demos/Demos/Charts/AreaSparklines/Angular/app/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,197 +3,197 @@ import { Injectable } from '@angular/core';
export class CostInfo {
month: number;

2010: number;
2021: number;

2011: number;
2022: number;

2012: number;
2023: number;
}

const copperCosts: CostInfo[] = [{
month: 1,
2010: 7341,
2011: 9585,
2012: 7501,
2021: 7970.50,
2022: 9775.93,
2023: 8999.79,
}, {
month: 2,
2010: 7016,
2011: 10026,
2012: 8470,
2021: 8460.25,
2022: 9941.35,
2023: 8955.20,
}, {
month: 3,
2010: 7202,
2011: 9889,
2012: 8591,
2021: 9004.98,
2022: 10237.59,
2023: 8835.72,
}, {
month: 4,
2010: 7851,
2011: 9460,
2012: 8459,
2021: 9335.55,
2022: 10183.13,
2023: 8814.00,
}, {
month: 5,
2010: 7481,
2011: 9373,
2012: 8320,
2021: 10183.97,
2022: 9362.81,
2023: 8234.28,
}, {
month: 6,
2010: 6532,
2011: 9108,
2012: 7465,
2021: 9612.43,
2022: 9033.13,
2023: 8386.23,
}, {
month: 7,
2010: 6498,
2011: 9295,
2012: 7475,
2021: 9433.59,
2022: 7529.79,
2023: 8445.26,
}, {
month: 8,
2010: 7191,
2011: 9834,
2012: 7430,
2021: 9357.19,
2022: 7960.98,
2023: 8351.77,
}, {
month: 9,
2010: 7596,
2011: 9121,
2012: 7614,
2021: 9324.07,
2022: 7734.70,
2023: 8270.86,
}, {
month: 10,
2010: 8057,
2011: 7125,
2012: 8245,
2021: 9778.50,
2022: 7621.21,
2023: 7939.66,
}, {
month: 11,
2010: 8373,
2011: 7871,
2012: 7727,
2021: 9765.48,
2022: 8029.95,
2023: 8173.95,
}, {
month: 12,
2010: 8636,
2011: 7725,
2012: 7880,
2021: 9550.31,
2022: 8367.23,
2023: 8394.11,
}];

const nickelCosts: CostInfo[] = [{
month: 1,
2010: 18974,
2011: 24298,
2012: 18322,
2021: 17847.68,
2022: 22355.40,
2023: 28194.61,
}, {
month: 2,
2010: 18162,
2011: 27929,
2012: 21093,
2021: 18595.30,
2022: 24015.55,
2023: 26727.95,
}, {
month: 3,
2010: 20535,
2011: 28802,
2012: 19701,
2021: 16460.83,
2022: 33924.18,
2023: 23288.61,
}, {
month: 4,
2010: 24562,
2011: 26142,
2012: 17695,
2021: 16480.91,
2022: 33132.74,
2023: 23894.56,
}, {
month: 5,
2010: 26131,
2011: 26753,
2012: 17549,
2021: 17552.45,
2022: 28062.55,
2023: 21970.39,
}, {
month: 6,
2010: 19278,
2011: 23055,
2012: 16436,
2021: 17942.32,
2022: 25658.63,
2023: 21233.28,
}, {
month: 7,
2010: 19475,
2011: 22870,
2012: 16382,
2021: 18819.36,
2022: 21481.89,
2023: 21091.26,
}, {
month: 8,
2010: 20701,
2011: 24388,
2012: 15687,
2021: 19160.23,
2022: 22057.39,
2023: 20438.65,
}, {
month: 9,
2010: 21266,
2011: 21845,
2012: 16085,
2021: 19398.23,
2022: 22773.97,
2023: 19644.64,
}, {
month: 10,
2010: 23358,
2011: 18346,
2012: 18250,
2021: 19420.52,
2022: 22032.89,
2023: 18281.23,
}, {
month: 11,
2010: 23150,
2011: 18822,
2012: 16083,
2021: 19970.43,
2022: 25562.70,
2023: 17027.36,
}, {
month: 12,
2010: 23282,
2011: 17320,
2012: 17104,
2021: 20015.55,
2022: 28946.81,
2023: 16460.84,
}];

const palladiumCosts: CostInfo[] = [{
month: 1,
2010: 398,
2011: 788,
2012: 649,
2021: 2391.20,
2022: 2030.86,
2023: 1734.27,
}, {
month: 2,
2010: 422,
2011: 817,
2012: 698,
2021: 2342.33,
2022: 2350.10,
2023: 1543.90,
}, {
month: 3,
2010: 431,
2011: 812,
2012: 713,
2021: 2525.61,
2022: 2582.78,
2023: 1426.00,
}, {
month: 4,
2010: 481,
2011: 760,
2012: 654,
2021: 2776.45,
2022: 2330.67,
2023: 1508.00,
}, {
month: 5,
2010: 551,
2011: 774,
2012: 665,
2021: 2900.52,
2022: 2060.05,
2023: 1482.61,
}, {
month: 6,
2010: 449,
2011: 775,
2012: 609,
2021: 2752.48,
2022: 1913.05,
2023: 1348.09,
}, {
month: 7,
2010: 442,
2011: 750,
2012: 584,
2021: 2754.76,
2022: 1973.10,
2023: 1264.48,
}, {
month: 8,
2010: 482,
2011: 827,
2012: 580,
2021: 2544.73,
2022: 2135.52,
2023: 1247.30,
}, {
month: 9,
2010: 517,
2011: 776,
2012: 632,
2021: 2130.32,
2022: 2113.95,
2023: 1239.29,
}, {
month: 10,
2010: 566,
2011: 624,
2012: 657,
2021: 2058.48,
2022: 2078.86,
2023: 1142.09,
}, {
month: 11,
2010: 630,
2011: 651,
2012: 601,
2021: 2036.32,
2022: 1911.55,
2023: 1050.27,
}, {
month: 12,
2010: 737,
2011: 615,
2012: 675,
2021: 1810.52,
2022: 1808.36,
2023: 1087.76,
}];

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/Demos/Charts/AreaSparklines/React/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import RowTemplate from './RowTemplate.tsx';

const years = ['2010', '2011', '2012'];
const years = ['2021', '2022', '2023'];

function App() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function RowTemplate(props: RowTemplateProps) {
valueField={props.year}
type="area"
>
<Tooltip format="currency" />
<Tooltip format={{ type: 'currency', precision: 2 }} />
</Sparkline>
</td>
<td>
Expand All @@ -45,7 +45,7 @@ export default function RowTemplate(props: RowTemplateProps) {
minColor="#6babac"
maxColor="#8076bb"
>
<Tooltip format="currency" />
<Tooltip format={{ type: 'currency', precision: 2 }} />
</Sparkline>
</td>
<td>
Expand All @@ -61,7 +61,7 @@ export default function RowTemplate(props: RowTemplateProps) {
pointColor="#e8c267"
pointSymbol="polygon"
>
<Tooltip format="currency" />
<Tooltip format={{ type: 'currency', precision: 2 }} />
</Sparkline>
</td>
</tr>
Expand Down
Loading
Loading