ae3e / ae3e-html-panel

Grafana panel to render data (provided by a datasource) with full custom HTML/JS/CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Html Panel

to do

Examples

Advanced example needs a web api datasource with the following global function :

let result;
switch (options.hash['function']) {
    case "dateFormat":
        result = new Date(parseInt(text)).toISOString();
        break;
        default:
        const f = new Function('data', options.hash['function']);
        result = f(text);
    }

return result;

About

Grafana panel to render data (provided by a datasource) with full custom HTML/JS/CSS

License:Apache License 2.0


Languages

Language:TypeScript 90.9%Language:JavaScript 9.1%