@cdc/dashboard 4.22.10 → 4.22.11

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 CHANGED
@@ -1,36 +1,36 @@
1
- # @cdc/dashboard
2
-
3
- [![npm](https://img.shields.io/npm/v/@cdc/dashboard)](https://www.npmjs.com/package/@cdc/dashboard)
4
-
5
-
6
- `<CdcDashboard />` is a React component produced by the CDC for combining multiple visualizations into a single module. Some supported visualization types are CdcMap and CdcChart. This package is part of the larger [CDC Open Visualization](https://github.com/CDCgov/cdc-open-viz) project.
7
-
8
- ### Installation and Usage
9
-
10
- 1. Install the package in your React project `npm install @cdc/dashboard`
11
- 2. Import the component and begin using in your code.
12
- ```JSX
13
- import CdcChart from '@cdc/dashboard'
14
-
15
- function App() {
16
-
17
- return (
18
- <div className="App">
19
- <CdcDashboard config={configObj} />
20
- </div>
21
- );
22
- }
23
-
24
- export default App;
25
- ```
26
-
27
- Note, you must pass in a configuration object. Configuration objects can be created with the [Editor package](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/editor).
28
-
29
- Sample config data can be found in [packages/dashboard/examples](https://github.com/CDCgov/cdc-open-viz/tree/integration/packages/dashboard/examples).
30
-
31
- ### Properties
32
-
33
- | Property | Type | Description |
34
- |-------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
35
- | config | String | A JavaScript object with the configuration for the dashboard. Pass either this or the configUrl property to setup your dashboard. |
36
- | configUrl | String | Pass a URL to a .json file and it will be consumed and used as the configuration. |
1
+ # @cdc/dashboard
2
+
3
+ [![npm](https://img.shields.io/npm/v/@cdc/dashboard)](https://www.npmjs.com/package/@cdc/dashboard)
4
+
5
+ `<CdcDashboard />` is a React component produced by the CDC for combining multiple visualizations into a single module. Some supported visualization types are CdcMap and CdcChart. This package is part of the larger [CDC Open Visualization](https://github.com/CDCgov/cdc-open-viz) project.
6
+
7
+ ### Installation and Usage
8
+
9
+ 1. Install the package in your React project `npm install @cdc/dashboard`
10
+ 2. Import the component and begin using in your code.
11
+
12
+ ```JSX
13
+ import CdcChart from '@cdc/dashboard'
14
+
15
+ function App() {
16
+
17
+ return (
18
+ <div className="App">
19
+ <CdcDashboard config={configObj} />
20
+ </div>
21
+ );
22
+ }
23
+
24
+ export default App;
25
+ ```
26
+
27
+ Note, you must pass in a configuration object. Configuration objects can be created with the [Editor package](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/editor).
28
+
29
+ Sample config data can be found in [packages/dashboard/examples](https://github.com/CDCgov/cdc-open-viz/tree/integration/packages/dashboard/examples).
30
+
31
+ ### Properties
32
+
33
+ | Property | Type | Description |
34
+ | --------- | ------ | --------------------------------------------------------------------------------------------------------------------------------- |
35
+ | config | String | A JavaScript object with the configuration for the dashboard. Pass either this or the configUrl property to setup your dashboard. |
36
+ | configUrl | String | Pass a URL to a .json file and it will be consumed and used as the configuration. |