The Wayback Machine - https://web.archive.org/web/20190616142011/https://github.com/apexcharts/apexcharts.js
Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

πŸ“Š Interactive SVG Charts
Branch: master
Clone or download
Latest commit 0d8e922 Jun 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Jun 2, 2019
.vscode Almost working build config Jan 11, 2019
build scatter chart issue when data is null - fixes #362 Mar 2, 2019
dist build - 3.8.0 Jun 9, 2019
samples bug fix in a multi-yaxis chart when chart.stacked is true - fixes #625 Jun 8, 2019
src bug fix in a multi-yaxis chart when chart.stacked is true - fixes #625 Jun 8, 2019
tests values out of bounds fix - fixes #622 May 26, 2019
types add missing types Jun 9, 2019
.editorconfig Proper eslint configuration, temporary dependencies cleanup Jan 10, 2019
.eslintignore Proper eslint configuration, temporary dependencies cleanup Jan 10, 2019
.eslintrc.js code formatter (prettier) applied globally Feb 8, 2019
.gitattributes Proper eslint configuration, temporary dependencies cleanup Jan 10, 2019
.gitignore multiple yaxis bug fixed when yaxis was pushed into options dynamically Sep 20, 2018
.npmignore updated npmignore Oct 1, 2018
.npmrc Somewhat working tests Jan 11, 2019
.prettierignore Proper eslint configuration, temporary dependencies cleanup Jan 10, 2019
.prettierrc.js Proper eslint configuration, temporary dependencies cleanup Jan 10, 2019
.travis.yml Project restructuration Jan 10, 2019
BACKERS.md add missing dev-dependency; update BACKERS Apr 9, 2019
CHANGELOG.md changelog updated Dec 9, 2018
CODE_OF_CONDUCT.md Add contributing guide and code-of-conduct Sep 6, 2018
CONTRIBUTING.md Update CONTRIBUTING guide (change the npm script) Feb 22, 2019
LICENSE initial commit Jul 24, 2018
PULL_REQUEST_TEMPLATE.md Create PULL_REQUEST_TEMPLATE.md Sep 27, 2018
README.md Add ruby wrapper Jun 14, 2019
babel.config.js yaxis.reversed implemented - fixes #382; removed customShapes on bars Mar 10, 2019
config.js Move jest config Jan 11, 2019
jest.config.js yaxis.reversed implemented - fixes #382; removed customShapes on bars Mar 10, 2019
package-lock.json 3.8.0 Jun 9, 2019
package.json 3.8.0 Jun 9, 2019
webpack.config.js Loading using Require.js (AMD); fixes #357 Apr 4, 2019

README.md

License build downloads ver size jsdelivr prettier patrons

A modern JavaScript charting library to build interactive charts and visualizations with simple API.

Sponsored by



Browsers support

Firefox
Firefox
Chrome
Chrome
Safari
Safari
Edge
Edge
IE
IE11
31+ βœ” 35+ βœ” 6+ βœ” Edge βœ” IE11 βœ”

Download and Installation

Installing via npm
npm install apexcharts --save
Direct <script> include
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>

Wrappers for Vue/React/Angular

Integrate easily with 3rd party frameworks

Unofficial Wrappers

Useful links to wrappers other than the popular frameworks mentioned above

Usage

import ApexCharts from 'apexcharts'

To create a basic bar chart with minimal configuration, write as follows:

var options = {
  chart: {
    type: 'bar'
  },
  series: [{
    name: 'sales',
    data: [30, 40, 35, 50, 49, 60, 70, 91, 125]
  }],
  xaxis: {
    categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999]
  }
}

var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();

This will render the following chart

A little more than the basic

You can create a combination of different charts, sync them and give your desired look with unlimited possibilities. Below is an example of synchronized charts with github style.

Interactivity

Zoom, Pan, Scroll through data. Make selections and load other charts using those selections. An example showing some interactivity

interactive chart

Dynamic Series Update

Another approach to Drill down charts where one selection updates the data of other charts. An example of loading dynamic series into charts is shown below

dynamic-loading-chart

Annotations

Annotations allows you to write custom text on specific values or on axes values. Valuable to expand the visual appeal of your chart and make it more informative.

annotations

Mixed Charts

You can combine more than one chart type to create a combo/mixed chart. Possible combinations can be line/area/column together in a single chart. Each chart-type can have it's own y-axis.

annotations

Candlestick

Use a candlestick chart (a common financial chart) to describe price changes of a security, derivative, or currency. Below image show how you can use another chart as a brush/preview-pane which acts as a handle to browse the main candlestick chart.

candlestick

Heatmaps

Use Heatmaps to represent data through colors and shades. Frequently used with bigger data collections, they are valuable for recognizing patterns and area of focus.

heatmap

Gauges

The tiny gauges are an important part of a dashboard and are useful in displaying single series data. A demo of these gauges:

radialbar-chart

Sparklines

Utilize sparklines to indicate trends in data, for example, occasional increments or declines, monetary cycles, or to feature most extreme and least values:

sparkline-chart

What's included

The download bundle includes the following files and directories providing a minified single file in the dist folder. Every asset including icon/css is bundled in the js itself to avoid loading multiple files.

apexcharts/
β”œβ”€β”€ dist/
β”‚   └── apexcharts.min.js
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ charts/
β”‚   β”œβ”€β”€ modules/
β”‚   β”œβ”€β”€ utils/
β”‚   └── apexcharts.js
└── samples/

Development

Install dependencies and run project

npm install
npm run dev

This will start the webpack watch and any changes you make to src folder will auto-compile and output will be produced in the dist folder.

Minifying the src

npm run build

Where do I go next?

Head over to the documentation section to read more about how to use different kinds of charts and explore all options.

Contacts

Email: info@apexcharts.com

Twitter: @apexcharts

Facebook: fb.com/apexcharts

Dependency

ApexCharts uses SVG.js for drawing shapes, animations, applying svg filters and a lot more under the hood. The library is bundled in the final build file, so you don't need to include it.

Supporting ApexCharts

ApexCharts is an open source project.
You can help by becoming a sponsor on Patreon or doing a one time donation on PayPal

Become a Patron

Our Supporters

Financial contributions to ApexCharts go towards ongoing development costs, servers, etc. You can join them in supporting ApexCharts development by visiting our page on Patreon!

Sponsors

Become a sponsor and get your logo on our website's home-page with a link to your site. [Become a sponsor]

License

ApexCharts is released under MIT license. You are free to use, modify and distribute this software, as long as the copyright header is left intact.

You can’t perform that action at this time.