Add new Flot plugin in Grafana


#1

Hi there!
I’m developing a gantt-like plotting panel.
Can i have some hint about how to include a new flot plugin?
Apparently, the result that I’m seek for is put a custom version of this in here.

Thanks in advance.


#2

Not sure, try just importing it with systemjs


#3

Thanks
I just put my flot plugins in an src/external folder and changed Gruntfile.js:

...  
copy: {
    ...
    externals: {
        cwd: 'src',
        expand: true,
        src: ['**/external/*'],
        dest: 'dist'
    }
},
...

Now I can import plugins with

import * as mouse from './external/jquery.flot.mouse.js';

Thanks again