• Stars
    star
    243
  • Rank 160,870 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Highcharts Editor

Stand-alone and embeddable chart editor for Highcharts

IMPORTANT NOTICE

The Highcharts Editor is currently in Beta. The master branch is not suited for production - use one of the pre-built releases.

Introduction

screenshots/customize.png

Click here for live demos

highcharts-editor is a lightweight chart editor for highcharts that can be embedded into existing frameworks and libraries, or used stand-alone. It requires no back-end service to operate.

Features

  • Light on dependencies: requires only Highcharts, FontAwesome, and (optionally) two Google Fonts
  • Lightweight: weighs in at ~40kb minified and gzipped
  • 100% client-side
  • Integration with Highcharts Cloud
  • Outputs embeddable HTML, JavaScript, and JSON
  • Highly configurable
  • Plug-in system

Note about upgrading from 0.1.3

The transition from 0.1.3 to 0.2.0 introduces some fundemental changes.

Most notable is the complete design overhaul.

There are however also changes to the way the editor is built.

Previously, templates were part of the default build - now, templates are bundled in separate product bundles. This means that in order for the default templates to show up, highcharts-editor.with.modules.min.js must also be included.

Alternatively, include highcharts-editor.complete.js which includes the editor itself, all templates, and advanced mode baked into a single file.

A full list of changes can be found here.

Installing and Building

Pre-built

We strongly encourage you to use the pre-built stable versions of the editor.

You can find these here.

Cloning and building the repository

git clone https://github.com/highcharts/highcharts-editor
cd highcharts-editor
npm install
gulp

Build options

  • gulp: Builds distribution packages for the editor and the bundled integrations and plugins
  • gulp electron: Builds Electron packages for Windows/Linux/OSX
  • gulp with-advanced: Builds packages for the advanced editor which exposes all API settings
  • gulp complete: Builds a complete bundle with advanced mode, and all supported modules

Notice for windows users: You need 7zip installed and added to your path for gulp electron to work!

This will put a built version in the dist folder.

Running from unminified sources locally

If extending/modifying the editor code itself (or adding themes etc.), use the bundled express server. This server uses the source files directly without minifying/concatenating which makes it easier to debug and test things. It also bakes the Less files for each request.

Run node bin/www to start it, then head to http://127.0.0.1:3005 for further instructions.

If you want to add new source files, add it to res/filelist.json, and it should be picked up in both the build script and the server. Note that the include order matters, so be sure to add it at the bottom, or before any other files that might depend on its content.

Embedding Hello World

<!DOCTYPE html>
<html>
	<head>
  <link href="highcharts-editor.min.css" type="text/css" rel="stylesheet"/>
  <script src="highcharts-editor.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
	</body>
	<script>
		//Create an editor widget and attach it to the document body      
		highed.Editor(document.body).on('ChartChange', function (data) {
      //Do something with the modified chart here.
  });
	</script>
</html>

Integrations

A number of example integrations are included in the editor:

General Documentation

License

The editor is licensed under MIT.

Note that the use of Highcharts itself (which the editor depends on) falls under the Highcharts License.

More Repositories

1

highcharts

Highcharts JS, the JavaScript charting framework
TypeScript
11,823
star
2

highcharts-react

The official Highcharts supported wrapper for React
JavaScript
978
star
3

highcharts-vue

Vue
646
star
4

highcharts-angular

Highcharts official integration for Angular
TypeScript
408
star
5

node-export-server

Highcharts Node.js export server
JavaScript
337
star
6

highcharts-dist

Official shim repo for Highcharts releases
JavaScript
205
star
7

highcharts-export-server

The exporting server allows users to send charts in SVG or JSON and let them convert and download as pdf, png, jpeg or a svg vector image.
Java
138
star
8

highcharts-ios

iOS wrapper for Highcharts.
JavaScript
125
star
9

highcharts-android

Android wrapper for Highcharts usage
Java
124
star
10

highcharts-react-native

JavaScript
103
star
11

export-csv

Highcharts plugin to export chart data to CSV
JavaScript
76
star
12

highstock-release

Official shim repo for Highstock releases
JavaScript
53
star
13

draggable-points

JavaScript
32
star
14

map-collection-dist

HTML
26
star
15

rounded-corners

JavaScript
25
star
16

pattern-fill

JavaScript
21
star
17

highmaps-release

Official shim repo for Highmaps releases
JavaScript
19
star
18

highcharts-declarations-beta

Beta for Highcharts TypeScript declarations
JavaScript
11
star
19

sonification-studio

Vue
9
star
20

api-docs

Generator for API documentation based on output from the Highcharts JSDoc plugin
CSS
6
star
21

draggable-legend

JavaScript
6
star
22

adapt-chart-to-legend

JavaScript
6
star
23

github.highcharts.com

Node.js server which runs a RESTful application to serve Highcharts scripts built from the Highcharts build script.
JavaScript
6
star
24

dashboards-dist

Official shim repo for releases of Highcharts Dashboards
JavaScript
5
star
25

value-in-legend

JavaScript
5
star
26

highcharts-utils

JavaScript
5
star
27

highcharts-documentation-generators

Documentation generators
CSS
4
star
28

map-from-svg

SVG map parser for Highcharts Maps
JavaScript
3
star
29

highcharts-assembler

JavaScript
2
star
30

Highcharts-Cloud-API-Demo

JavaScript
2
star
31

highcharts-meteor

Meteor wrapper for Highcharts
JavaScript
2
star
32

highcharts-jsdom

A utility to convert Highcharts configs to SVGs without a browser
JavaScript
1
star
33

screen-dashboard

An application for our monitors.
HTML
1
star
34

Highcharts-Cloud-API-Demo-MEAN-Stack

JavaScript
1
star
35

trackball

A plugin for Highcharts adding trackball/marker features to each series in the chart.
JavaScript
1
star
36

highcharts-declarations-generator

Generator scripts for generating TypeScript declarations
TypeScript
1
star