4.24.4 • Published 2 days ago

@cdc/data-bite v4.24.4

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

@cdc/data-bite

npm

<CdcDataBite /> is a React component produced by the CDC for highlighting/displaying a single piece of data in a card format. This package is part of the larger CDC Open Visualization project.

Installation and Usage

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

function App() {

  return (
    <div className="App">
      <CdcDataBite 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/data-bite/examples.

Properties

PropertyTypeDescription
configStringA JavaScript object with the configuration for the data bite. Pass either this or the configUrl property to setup your chart.
4.24.4

2 days 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.7

9 months ago

4.23.8

8 months ago

4.23.9

7 months ago

4.23.10-alpha

6 months ago

4.23.10

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.11

1 year ago

4.22.10

1 year ago

9.22.9

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago