@arcgis/charts-components-react 4.33.0-next.99 → 4.34.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.
Files changed (2) hide show
  1. package/README.md +40 -4
  2. package/package.json +8 -7
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # ArcGIS Maps SDK for JavaScript - React wapper for Charts Components (beta)
1
+ # ArcGIS Maps SDK for JavaScript - React wrapper for Charts Components (beta)
2
2
 
3
3
  **No Esri Technical Support during beta.**
4
4
 
5
- The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package offers a series of charting components that can be used to build custom applications.
5
+ > Note: `@arcgis/charts-components-react` was developed for use in React 18. Consider updating to React 19 where the React wrapper is no longer necessary. Check out the [documentation](https://developers.arcgis.com/javascript/latest/get-started-react/) to get started with `@arcgis/charts-components` in React 19.
6
6
 
7
- Samples for how to use this package are available on github in the [jsapi-resources](https://github.com/Esri/jsapi-resources) repository.
7
+ The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package offers a series of charting components that can be used to build custom applications.
8
8
 
9
9
  ## Documentation
10
10
 
@@ -22,11 +22,47 @@ Samples for how to use this package are available on github in the [jsapi-resour
22
22
  - [Licensing](https://developers.arcgis.com/javascript/latest/licensing/)
23
23
  - [Working with `next` versions](https://github.com/Esri/feedback-js-api-next/blob/main/README.md)
24
24
 
25
- ## Issues
25
+ ## Support
26
26
 
27
27
  - General questions about using this package or the ArcGIS Maps SDK for JavaScript? See the [Esri developer community](https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript).
28
28
  - [Technical support](https://support.esri.com/).
29
29
 
30
+ ## Quick start guide
31
+
32
+ - Get started by using the [react 18 sample](https://developers.arcgis.com/javascript/latest/get-started-react/#download-project).
33
+ - Install the required packages: `@arcgis/charts-components-react`, `@arcgis/core`, `@esri/calcite-components-react`.
34
+ - Import the necessary CSS files in your project and ensure CSS is configured for the charts components:
35
+
36
+ ```js
37
+ @import 'https://js.arcgis.com/4.33/@arcgis/core/assets/esri/themes/dark/main.css';
38
+ @import url("https://js.arcgis.com/calcite-components/3.2.0/calcite.css");
39
+
40
+ #root,
41
+ html,
42
+ body {
43
+ margin: 0;
44
+ }
45
+ ```
46
+
47
+ - Add chart component: In your main file (e.g., index.tsx), add the `ArcgisChart` component and configure it with either an existing chart model from a feature layer, or by creating a new model with `createModel()`.
48
+
49
+ ```js
50
+ import React from "react";
51
+ import ReactDOM from "react-dom/client";
52
+ import "@arcgis/charts-components/components/arcgis-chart";
53
+ import "@arcgis/charts-components/components/arcgis-charts-action-bar";
54
+ import { ArcgisChart, ArcgisChartsActionBar } from "@arcgis/charts-components-react";
55
+
56
+ const root = ReactDOM.createRoot(document.getElementById("root"));
57
+ root.render(
58
+ <React.StrictMode>
59
+ <ArcgisChart>
60
+ <ArcgisChartsActionBar slot="action-bar"></ArcgisChartsActionBar>
61
+ </ArcgisChart>
62
+ </React.StrictMode>,
63
+ );
64
+ ```
65
+
30
66
  ## License
31
67
 
32
68
  COPYRIGHT © 2025 Esri
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components-react",
3
- "version": "4.33.0-next.99",
3
+ "version": "4.34.0-next.1",
4
4
  "description": "A set of React components that wrap ArcGIS charts components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -18,6 +18,7 @@
18
18
  ],
19
19
  "homepage": "https://developers.arcgis.com/javascript/latest/",
20
20
  "sideEffects": false,
21
+ "type": "module",
21
22
  "main": "dist/index.js",
22
23
  "module": "dist/index.js",
23
24
  "types": "dist/index.d.ts",
@@ -26,13 +27,13 @@
26
27
  ],
27
28
  "license": "SEE LICENSE.md",
28
29
  "dependencies": {
29
- "@arcgis/charts-components": "4.33.0-next.99",
30
- "@arcgis/charts-shared-utils": "4.33.0-next.99",
31
- "@arcgis/charts-spec": "4.33.0-next.99"
30
+ "@arcgis/charts-components": "4.34.0-next.1",
31
+ "@lit/react": "^1.0.7",
32
+ "tslib": "^2.8.1"
32
33
  },
33
34
  "peerDependencies": {
34
- "@arcgis/core": ">=4.33.0-next <4.34",
35
- "react": ">=18.0.0 <19.0.0",
36
- "react-dom": ">=18.0.0 <19.0.0"
35
+ "@arcgis/core": ">=4.34.0-next <4.35",
36
+ "react": ">=18.0.0 <20.0.0",
37
+ "react-dom": ">=18.0.0 <20.0.0"
37
38
  }
38
39
  }