Skip to content

Commit 72521c2

Browse files
Add Angular
1 parent 90639fd commit 72521c2

5 files changed

Lines changed: 184 additions & 88 deletions

File tree

Angular/package-lock.json

Lines changed: 99 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@angular/platform-browser": "^18.0.3",
2323
"@angular/platform-browser-dynamic": "^18.0.3",
2424
"@angular/router": "^18.0.3",
25-
"devextreme": "24.2.3",
26-
"devextreme-angular": "24.2.3",
25+
"devextreme": "25.1.3",
26+
"devextreme-angular": "25.1.3",
2727
"rxjs": "~7.8.0",
2828
"tslib": "^2.3.0",
2929
"zone.js": "~0.14.7"

Angular/src/app/app.component.html

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
11
<div class="default-style">
2-
<dx-button [text]="buttonText" (onClick)="onClick($event)"></dx-button>
2+
<dx-chart
3+
[dataSource]="chartData"
4+
title="Target vs Actual Spending 2024"
5+
>
6+
<dxi-series
7+
type="bar"
8+
argumentField="month"
9+
valueField="targetSpend"
10+
name="Budget"
11+
color="#5996ff"
12+
></dxi-series>
13+
<dxi-series
14+
type="spline"
15+
argumentField="month"
16+
valueField="actualSpend"
17+
name="Amount Spend"
18+
color="#cb4bfa"
19+
></dxi-series>
20+
<dxi-value-axis>
21+
<dxi-constant-line
22+
[value]="averageSpend"
23+
>
24+
<dxo-label
25+
text="Yearly Spend Average"
26+
></dxo-label>
27+
</dxi-constant-line>
28+
</dxi-value-axis>
29+
<dxo-tooltip
30+
[enabled]="true"
31+
[customizeTooltip]="customizeTooltip"
32+
></dxo-tooltip>
33+
<dxo-common-pane-settings>
34+
<dxo-background-color
35+
base="#ffffff"
36+
[fillId]="chartGradient"
37+
></dxo-background-color>
38+
</dxo-common-pane-settings>
39+
</dx-chart>
340
</div>

0 commit comments

Comments
 (0)