Git Product home page Git Product logo

editor4's Introduction

amCharts 4 Editor

amCharts 4 Editor is a chart configuration creation and editing GUI for amCharts 4. It is intended to be used as part of your application to enable your users to create and edit chart configurations.

Installation

There are two steps that you need to complete to add amCharts 4 Editor to your CMS.

1. Install the package:

npm install @amcharts4/editor4

or

yarn add @amcharts/editor4

2. Configure your build process to copy am4editor directory inside of this package into the output of your build.

For example, you can use a tool like ncp to copy these files into the public directory of your projects. An included React demo uses this technique in a typical Create React App-based application:

Standard CRA scripts in package.json are modified to perform the copying before the build:

"scripts": {
    "copy-editor": "ncp ./node_modules/@amcharts/editor4/am4editor ./public/am4editor",
    "start": "yarn copy-editor && react-scripts start",
    "build": " yarn copy-editor && react-scripts build",
}

Vue sample, on the other hand, uses a different approach and modifies webpack configuration to perform the copy.

Usage

First, you'll need to import Editor launcher into your app like this:

// import Editor Launcher
import * as am4editor from '@amcharts/editor4';

Then you create an instance of the EditorLauncher class and call its launch() method passing chart configuration object in case you want to edit an existing chart.

Something like this:

const launcher = new am4editor.EditorLauncher();
launcher.launch(chartConfig);

Refer to EditorLauncher reference in the documentation to learn about available properties and configuration options.

Samples

For practical applications, check out the included samples:

Status

amCharts 4 Editor is is in the alpha stage and is not yet ready for use in productions. You are welcome to explore it and provide feedback to shape the development.

Support

Commercial license holders should contact us directly at [email protected].

License

If you have a commercial amCharts 4 Editor license, this software is covered by your license, which supersedes any other license bundled with this package.

If you don't have a commercial license, you can use this software for development and testing purposes. Refer to the included LICENSE file. The license is also available online.

Questions?

Contact amCharts.

Found a bug?

Open an issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.