@siemens/native-charts-ng 49.0.0 → 49.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,16 +1,41 @@
|
|
|
1
|
-
# Element Native
|
|
1
|
+
# Element Native Charts
|
|
2
2
|
|
|
3
|
-
The Element native chart library for Angular
|
|
3
|
+
The Element native chart library for Angular without external dependencies.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
To use the Element
|
|
7
|
+
To use the Element Native Charts Angular components in your project, add them to your dependencies
|
|
8
8
|
by executing:
|
|
9
9
|
|
|
10
10
|
```sh
|
|
11
11
|
npm install --save @siemens/native-charts-ng
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Element Native Charts uses standalone components with separate entry points.
|
|
15
|
+
Import components directly from their specific entry points:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { SiNChartGaugeComponent } from '@siemens/native-charts-ng/gauge';
|
|
19
|
+
import { SiMicrochartBarComponent } from '@siemens/native-charts-ng/microchart-bar';
|
|
20
|
+
import { SiMicrochartDonutComponent } from '@siemens/native-charts-ng/microchart-donut';
|
|
21
|
+
import { SiMicrochartLineComponent } from '@siemens/native-charts-ng/microchart-line';
|
|
22
|
+
import { SiMicrochartProgressComponent } from '@siemens/native-charts-ng/microchart-progress';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'app-dashboard',
|
|
26
|
+
imports: [
|
|
27
|
+
SiNChartGaugeComponent,
|
|
28
|
+
SiMicrochartBarComponent
|
|
29
|
+
// ... other components
|
|
30
|
+
],
|
|
31
|
+
template: `
|
|
32
|
+
<si-nchart-gauge [series]="gaugeSeries" [min]="0" [max]="100" />
|
|
33
|
+
<si-microchart-bar [series]="barSeries" />
|
|
34
|
+
`
|
|
35
|
+
})
|
|
36
|
+
export class DashboardComponent {}
|
|
37
|
+
```
|
|
38
|
+
|
|
14
39
|
### Running unit tests
|
|
15
40
|
|
|
16
41
|
Run `npm run native-charts:test` to perform the unit tests via [Karma](https://karma-runner.github.io).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/native-charts-ng",
|
|
3
3
|
"description": "Element Native charts library.",
|
|
4
|
-
"version": "49.
|
|
4
|
+
"version": "49.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "21",
|
|
22
22
|
"@angular/core": "21",
|
|
23
|
-
"@siemens/element-theme": "49.
|
|
23
|
+
"@siemens/element-theme": "49.2.0"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
"./docs.json": {
|