@spike-rabbit/charts-ng 49.0.0-next.1

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/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@spike-rabbit/charts-ng",
3
+ "description": "Element Charts library.",
4
+ "version": "49.0.0-next.1",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+ssh://git@github.com/siemens/element.git"
9
+ },
10
+ "author": {
11
+ "name": "Siemens AG",
12
+ "email": "info@siemens.com"
13
+ },
14
+ "homepage": "https://github.com/siemens/element",
15
+ "bugs": "https://github.com/siemens/element/issues/new",
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "type": "module",
20
+ "peerDependencies": {
21
+ "@angular/common": "20",
22
+ "@angular/core": "20",
23
+ "echarts": "^5.6.0"
24
+ },
25
+ "exports": {
26
+ "./docs.json": {
27
+ "default": "./docs.json"
28
+ },
29
+ "./package.json": {
30
+ "default": "./package.json"
31
+ },
32
+ ".": {
33
+ "types": "./index.d.ts",
34
+ "default": "./fesm2022/spike-rabbit-charts-ng.mjs"
35
+ }
36
+ },
37
+ "module": "fesm2022/spike-rabbit-charts-ng.mjs",
38
+ "typings": "index.d.ts",
39
+ "sideEffects": false,
40
+ "dependencies": {
41
+ "tslib": "^2.3.0"
42
+ }
43
+ }
@@ -0,0 +1,50 @@
1
+ # Element Charts
2
+
3
+ The Element chart library for Angular based on ECharts. Going through the roof. Stoinks.
4
+
5
+ ## Usage
6
+
7
+ To use the Element Charts Angular components in your project, add them to your dependencies
8
+ by executing:
9
+
10
+ ```sh
11
+ npm install --save @spike-rabbit/charts-ng
12
+ ```
13
+
14
+ You also have to install the peer dependencies of Element Charts.
15
+
16
+ ```sh
17
+ npm install echarts --save
18
+ ```
19
+
20
+ Import the library to your Angular `AppModule`, mostly residing in your
21
+ `src/app/app.modules.ts` file as follows:
22
+
23
+ ```ts
24
+ // [...]
25
+
26
+ // Import this library
27
+ import { SiChartsNgModule } from '@spike-rabbit/charts-ng';
28
+
29
+ @NgModule({
30
+ declarations: [AppComponent],
31
+ imports: [BrowserModule, SiChartsNgModule],
32
+ providers: [],
33
+ bootstrap: [AppComponent]
34
+ })
35
+ export class AppModule {}
36
+ ```
37
+
38
+ ### Running unit tests
39
+
40
+ Run `yarn charts:test` to perform the unit tests via [Karma](https://karma-runner.github.io).
41
+ You can set a seed for running the tests in a specific using an environment variable: `SEED=71384 yarn lib:test`
42
+
43
+ ## License
44
+
45
+ The following applies for code and documentation of the git repository,
46
+ unless explicitly mentioned.
47
+
48
+ Copyright (c) Siemens 2016 - 2025
49
+
50
+ MIT, see [LICENSE.md](LICENSE.md).