4.24.10 • Published 8 months ago
@cdc/dashboard v4.24.10
@cdc/dashboard
<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 project.
Installation and Usage
- Install the package in your React project
npm install @cdc/dashboard
- Import the component and begin using in your code.
import CdcChart from '@cdc/dashboard'
function App() {
return (
<div className="App">
<CdcDashboard config={configObj} />
</div>
);
}
export default App;
Note, you must pass in a configuration object. Configuration objects can be created with the Editor package.
Sample config data can be found in packages/dashboard/examples.
Properties
Property | Type | Description |
---|---|---|
config | String | A JavaScript object with the configuration for the dashboard. Pass either this or the configUrl property to setup your dashboard. |
configUrl | String | Pass a URL to a .json file and it will be consumed and used as the configuration. |
4.24.10
8 months ago
4.24.9
9 months ago
4.24.9-1
9 months ago
4.24.7
11 months ago
4.24.5
1 year ago
4.24.4
1 year ago
4.24.3
1 year ago
4.24.2
1 year ago
4.24.1
1 year ago
4.23.11
1 year ago
4.23.7
2 years ago
4.23.8
2 years ago
4.23.9
2 years ago
4.23.10-alpha
2 years ago
4.23.10
2 years ago
4.23.6
2 years ago
4.23.5
2 years ago
4.23.4
2 years ago
4.23.3
2 years ago
4.23.2
2 years ago
4.23.1
2 years ago
4.22.10-alpha.1
3 years ago
4.22.11
3 years ago
4.22.10
3 years ago
9.22.9
3 years ago
1.1.4
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago