@servicetitan/anvil2-ext-charts 0.1.1 → 0.1.2
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/CHANGELOG.md +9 -0
- package/README.md +32 -0
- package/dist/ThemeSemantic-CNjZwPLr.js +13397 -0
- package/dist/ThemeSemantic-CNjZwPLr.js.map +1 -0
- package/dist/am5/themes/internal/initAmCharts.d.ts +1 -0
- package/dist/am5.js +1 -1
- package/dist/themes.js +1 -1
- package/package.json +4 -4
- package/dist/ThemeSemantic-IJ0aMgVy.js +0 -197
- package/dist/ThemeSemantic-IJ0aMgVy.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @servicetitan/anvil2-ext-common
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1624](https://github.com/servicetitan/hammer/pull/1624) [`a0f7dad`](https://github.com/servicetitan/hammer/commit/a0f7dad3b885d5867df185b79ca1ae118d197a7d) Thanks [@rgdelato](https://github.com/rgdelato)! - [Charts] Add license and remove watermark from amCharts5 themes
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`a0f7dad`](https://github.com/servicetitan/hammer/commit/a0f7dad3b885d5867df185b79ca1ae118d197a7d)]:
|
|
10
|
+
- @servicetitan/hammer-token@2.5.1
|
|
11
|
+
|
|
3
12
|
## 0.1.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
Anvil2 Extended Charts
|
|
3
|
+
</h1>
|
|
4
|
+
|
|
5
|
+
The Anvil2 Extended Charts library is a package for hosting common components and code related to data visualization. This currently hosts several themes for use with amCharts 5.
|
|
6
|
+
|
|
7
|
+
# Getting Started
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
We recommend installing the Charts package by running the following `npm` command (or the equivalent `yarn`/`pnpm` command) in your project folder:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm install @servicetitan/anvil2-ext-charts
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Themes for amCharts 5 can be imported as named exports from the package root:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { ThemeCategorical } from "@servicetitan/anvil2-ext-charts/am5";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then when creating a chart, the chosen theme can be added using `setThemes`:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
const root = am5.Root.new("chartdiv");
|
|
29
|
+
root.setThemes([am5themes_Animated.new(root), ThemeCategorical.new(root)]);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The themes currently support three color styles: `ThemeMonochrome`, `ThemeCategorical`, and `ThemeSemantic`, and all three themes currently support donut charts and bar charts.
|