@nteract/data-explorer
Version:
Transform for data resource JSON
65 lines (42 loc) • 2.44 kB
Markdown
# nteract Data Explorer
[](https://mybinder.org/v2/gh/nteract/examples/master?urlpath=%2Fnteract%2Fedit%2Fpython%2Fhappiness.ipynb)
[](https://github.com/nteract/data-explorer/actions/workflows/node.js.yml)
[](https://github.com/nteract/data-explorer/actions/workflows/codeql-analysis.yml)
[](https://www.npmjs.com/package/@nteract/data-explorer)
[](http://commitizen.github.io/cz-cli/)
An automatic data visualization tool.
## [Interactive Documentation](https://data-explorer.nteract.io/)
Explore the [documentation](https://data-explorer.nteract.io/).

## Creating Data Explorer
Read [Elijah Meeks](https://twitter.com/elijah_meeks)'s [post on designing the data explorer](https://blog.nteract.io/designing-the-nteract-data-explorer-f4476d53f897).
## Using the Data Explorer
To use Data Explorer in your project, use the following approach.
```bash
yarn add @nteract/data-explorer
```
Install `react` and `styled-components` if you are not already using them.
```bash
yarn add react styled-components
```
The `data` prop must be a [tabular data resource `application/vnd.dataresource+json`](https://frictionlessdata.io/specs/tabular-data-resource/)
```jsx
// Default import complete with right side toolbar
import DataExplorer from "@nteract/data-explorer";
<DataExplorer data={data} />;
```
Or, with custom `Toolbar` position:
```jsx
// Individual components as named imports
import { DataExplorer, Toolbar, Viz } from "@nteract/data-explorer";
<DataExplorer data={data}>
<Toolbar />
<Viz />
</DataExplorer>;
// Toolbar is optional
<DataExplorer data={data}>
<Viz />
</DataExplorer>;
```
## How do I contribute to this repo?
If you are interested in contributing to nteract, please read the [contribution guidelines](./CONTRIBUTING.md) for information on how to set up your nteract repo for development, how to update documentation, and how to submit your code changes for review on GitHub.