4.24.4 • Published 1 day ago

@cdc/editor v4.24.4

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
1 day ago

@cdc/editor

npm

React component for creating configurations for the dashboard, map, chart and data-bite packages. This package is part of the larger CDC Open Visualization project.

Examples

Installation and Usage

  1. Install the package in your React project npm install @cdc/editor
  2. Import the component and begin using in your code.
import CdcEditor from '@cdc/editor'

function App() {

  return (
    <div className="App">
      <CdcEditor />
    </div>
  );
}

export default App;

Note: If no properties are passed, the map will load a default configuration file.

Data Formatting

The data that you are mapping needs to be formatted in a specific way - must have distinct rows for each type of data and columns. If your data conforms to a regular spreadsheet, it's likely okay to utilize.

The supported formats are CSV and JSON files.

For more information and example data files, see the CDC's official guidance on formatting.

Properties

PropertyTypeDescription
configObjectYou can pass an existing config object to make changes to it with the editor. If no config is passed, it lets you start from scratch.
4.24.4

1 day ago

4.24.3

1 month ago

4.24.2

2 months ago

4.24.1

4 months ago

4.23.11

5 months ago

4.23.10-alpha

6 months ago

4.23.10

7 months ago

4.23.7

9 months ago

4.23.8

8 months ago

4.23.9

7 months ago

4.23.6

11 months ago

4.23.5

11 months ago

4.23.4

1 year ago

4.23.3

1 year ago

4.23.2

1 year ago

4.23.1

1 year ago

4.22.10-alpha.1

1 year ago

4.22.11

1 year ago

4.22.10

1 year ago

9.22.9

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.0.0-alpha.0

3 years ago