# @bps-dev/plugin-barchart-flex

> Plugin barchart with flexible x-axis position

Latest version **2.0.0** (published 2023-08-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @bps-dev/plugin-barchart-flex
pnpm add @bps-dev/plugin-barchart-flex
yarn add @bps-dev/plugin-barchart-flex
bun add @bps-dev/plugin-barchart-flex
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-08-24 |
| First published | 2023-08-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 194.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | My Name |
| Maintainers | isandyawan |

## Links

- npm: https://www.npmjs.com/package/@bps-dev/plugin-barchart-flex
- npm.io page: https://npm.io/package/@bps-dev/plugin-barchart-flex

## Dependencies (1)

- [echarts](https://npm.io/package/echarts.md) ^5.4.3

## Recent versions

- 2.0.0 (latest) — 2023-08-24
- 1.0.1 — 2023-08-24
- 1.0.0 — 2023-08-16

## README

# plugin-barchart-flex

This is the Plugin Barchart Flex Superset Chart Plugin.

### Usage

To build the plugin, run the following commands:

```
npm ci
npm run build
```

Alternatively, to run the plugin in development mode (=rebuilding whenever changes are made), start the dev server with the following command:

```
npm run dev
```

To add the package to Superset, go to the `superset-frontend` subdirectory in your Superset source folder (assuming both the `plugin-barchart-flex` plugin and `superset` repos are in the same root directory) and run
```
npm i -S ../../plugin-barchart-flex
```

After this edit the `superset-frontend/src/visualizations/presets/MainPreset.js` and make the following changes:

```js
import { PluginBarchartFlex } from 'plugin-barchart-flex';
```

to import the plugin and later add the following to the array that's passed to the `plugins` property:
```js
new PluginBarchartFlex().configure({ key: 'plugin-barchart-flex' }),
```

After that the plugin should show up when you run Superset, e.g. the development server:

```
npm run dev-server
```

---
_Source: https://npm.io/package/@bps-dev/plugin-barchart-flex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
