This panel only supports Neo4j Datasource.
Configurations are made in Grafana.
In this section, learn how to configure an InSights Chart.
The steps are given below -
Click the “General” tab.
- Enter the Title of the panel.
- Select span.
- Select Min Span (optional).
- Enter the Height.
- Select Transparent (optional).
Click the “Metrics” tab.
- Delete the fake data source.
- Select an appropriate value in Panel data source.
- Click “Add Query”.
Click the “Options” tab.
- Enter the appropriate options.
- Enter Data Transformation Instructions.
- Enter Data Join Instructions.
- Click “Load Chart” (In case to load an existing chart).
- Click “Save Chart” to save the chart.
Data Transformation Instructions
var formatter3 = new google.visualization.DateFormat({ pattern: "dd-MMM-yy" });
var testFunction = function (val) {
return new Date(formatter3.formatValue(val));
};
var result = google.visualization.data.group(data,
[{ column: 0, modifier: testFunction, type: 'date' }],
[{ 'column': 1, 'aggregation': google.visualization.data.sum, 'type': 'number' },
{ 'column': 2, 'aggregation': google.visualization.data.sum, 'type': 'number' }]);
return result;
Data Join Instructions
return google.visualization.data.join(dataTables[0], dataTables[1], 'full', [[0, 0]], [1], [1]);
Click “Time range”.
- Enter Override relative time.
- Add Shift time.
- Select/ Deselect “Hide time override info”.