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 👏.
- Copy
plugins
fromdist
folder, eg.datart-amap.iife.js
file. - Paste to your datart backend server folder of
custom-chart-plugins
- Login datart, and select a your custom plugin chart.
With this project, you can make yourself plugin chart and bundle with CLI.
IIFE also called Immediately Invoked Function Expression1, a programming language idiom which produces a lexical scope using function scoping.
- Create a folder prefixed with
datart-
, such asdatart-hello-world
. - Create a plugin chart with Javascript or Typescript file
- Plugin chart should be export an object with datart lifecycles2, such as
onMount
、onUpdated
and etc. - Run
npm run build
and then checkdist
folder with filedatart-hello-world.iife.js
. NOTE: Plugin folder should be prefix asdatart-*
which could be automatic load when runbuild
Please take a look plugins folder
- Plugin Chart Helper API document: https://running-elephant.github.io/datart-docs/api/
- How to Make a Plugin Chart: https://running-elephant.github.io/datart-docs/docs/chart_plugin.html
- How to Make Chart Config: https://juejin.cn/post/7040683275446124574
- Vue Carousel Plugin Chart:https://mp.weixin.qq.com/s/a4DVf-5LHVQAknmKKE6DJA
- JQuery Plugin Chart:https://mp.weixin.qq.com/s/9hBNSla86Fzouy0WdXqSQQ
- Hand by hand develop a plugin chart: https://mp.weixin.qq.com/s/nYMAaiT97NPkm71FpW8LSw