Giter Club home page Giter Club logo

datart-extension-charts's Introduction

datart-extension-charts

An extension repository to host datart plugin charts which is in experiment state not officially🤝.

🖖 Welcome PRs or Issues, please don't be worry about any questions 👏.

By Consumer

  1. Copy plugins from dist folder, eg. datart-amap.iife.js file.
  2. Paste to your datart backend server folder of custom-chart-plugins
  3. Login datart, and select a your custom plugin chart.

By Developer

With this project, you can make yourself plugin chart and bundle with CLI.

1. Cook plugin chart as IIFE type (Recommended)

IIFE also called Immediately Invoked Function Expression1, a programming language idiom which produces a lexical scope using function scoping.

  1. Create a folder prefixed with datart-, such as datart-hello-world.
  2. Create a plugin chart with Javascript or Typescript file
  3. Plugin chart should be export an object with datart lifecycles2, such as onMountonUpdated and etc.
  4. Run npm run build and then check dist folder with file datart-hello-world.iife.js. NOTE: Plugin folder should be prefix as datart-* which could be automatic load when run build

2. Cook plugin chart as an React Component

Please take a look plugins folder

Sample

Antv/G2

Antv/G2

BabylonJS

BabylonJS

ChartJS

ChartJS

ThreeJS-BingDunDun

ThreeJS-BingDunDun

ThreeJS-WebGL

ThreeJS-BingDunDun

ECharts-Time

ECharts-Time

Mermaid-UML

Mermaid-UML

VueJS

VueJS

ZRender

ZRender

More Posts

Footnotes

  1. https://en.wikipedia.org/wiki/Immediately_invoked_function_expression

  2. https://running-elephant.github.io/datart-docs/docs/chart_plugin.html

datart-extension-charts's People

Contributors

cuiyansong avatar qxqzx13 avatar scottsut avatar

Watchers

James Cloos avatar

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.