@cdc/dashboard v4.25.5-1
@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. |
8 months ago
9 months ago
8 months ago
10 months ago
12 months ago
11 months ago
5 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago