Skip to content

XiaoLin1995/antv-g6-panel

Repository files navigation

Grafana AntV G6 Panel

release issues stars

AntV G6 panel for grafana 7.0+, coding with react.

Code editor is attached in the edit panel to configure the option of AntV G6.

Support G6.Graph.

screenshot

How Use

  1. Download the packaged plugin.
  2. Or clone this repo and run yarn build.
  3. Move folder to "/grafana_path/data/plugins".
  4. Restart grafana.

Tips

  1. G6 data and layout in the edit panel will execute when the data from grafana is refreshed, so you should avoid side effects or ensure that the side effects of the last execution can be cleared.
function (data, graph, G6) {
  return {...}
}

Custom

This plugin build with @grafana/toolkit. For more information about panels, refer to the documentation on Panels

  1. Install dependencies

    yarn install
  2. Build plugin in development mode or run in watch mode

    yarn dev

    or

    yarn watch
  3. Build plugin in production mode

    yarn build

Learn more