# encharting

> Encharting is an Angular library designed to simplify the process of 2D charts generation.

Latest version **0.0.8** (published 2024-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install encharting
pnpm add encharting
yarn add encharting
bun add encharting
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2024-03-03 |
| First published | 2023-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 362 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | chrismassa |
| Keywords | angular, angular 15, angular 16, angular 17, echarts, angular echarts, angular chart, angular charts, angular graph, angular graphs, angular data visualization, angular chart directive |

## Links

- npm: https://www.npmjs.com/package/encharting
- Repository: https://github.com/chrismassa/encharting
- Homepage: https://encharting.netlify.app
- Issues: https://github.com/chrismassa/encharting/issues
- npm.io page: https://npm.io/package/encharting

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [echarts](https://npm.io/package/echarts.md) ^5.5.0
- [@types/echarts](https://npm.io/package/@types/echarts.md) ^4.9.22

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2024-03-03
- 0.0.7 — 2023-05-07
- 0.0.6 — 2023-05-07
- 0.0.5 — 2023-05-07
- 0.0.4 — 2023-01-07
- 0.0.3 — 2023-01-05
- 0.0.2 — 2023-01-04
- 0.0.1 — 2023-01-03

## README

# Getting Started

Encharting is an Angular library designed to simplify the process of 2D charts generation.

# Installation

After creating a new Angular project simply run:

```properties
npm install encharting --save
``` 

# Usage

- Firstly, import EnchartingDirective in your app module (or any other proper Angular Module, Standalone Components also work).
  
    ```typescript
    import { EnchartingDirective } from 'encharting';

    @NgModule({
        imports: [
            EnchartingDirective
        ],
    })
    export class AppModule {}
    ```
- Then use the **encharting** directive in the HTML of your Angular component:
  
  ```html
  <div encharting></div>
  ```

# Input API

| Name                    | Type            | Default            | Description                                            |
| ----------------------- | --------------- | ------------------ | ------------------------------------------------------ |
| **@Input** [config]     | Chart           | { components: [] } | The chart configuration object                         |
| **@Input** [width]      | string          | 600px              | The width of the canvas element (use same css values)  |
| **@Input** [height]     | string          | 400px              | The height of the canvas element (use same css values) |
| **@Input** [theme]      | EnchartingTheme | undefined          | The theme of the chart                                 |
| **@Input** [fontFamily] | string          |                    | The Font Family of the chart                           |

# Output API

| Name                       | Type           | Description                                                                                              |
| -------------------------- | -------------- | -------------------------------------------------------------------------------------------------------- |
| **@Output** (onClick)      | ECElementEvent | Emits an ECElementEvent object when clicking on a component of the chart (for example a point of a line) |
| **@Output** (onBlankClick) | BasePoint      | Emits a BasePoint object when clicking on a blank space of the chart                                     |

---
_Source: https://npm.io/package/encharting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
