Anchor | ||||
---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
| ||||
This panel only supports is compatible with Neo4j Datasource. |
Info |
---|
Configurations are made in Grafana. |
In this section, learn how to configure an InSights Chart. The The steps are given below -
Panel | |
---|---|
Steps
|
Click
the “General”the “Settings” in the "Panel" tab.
- Enter the Title of the panel.
- Select span.
- Select Min Span Enter the Description of the panel (optional).Enter the Height.
- Select Transparent (optional).
Click the
“Metrics”“Query” tab.
- Delete Select the fake data source.Select
- Write an appropriate value in Panel data sourcequery in the query field.
- Click “Add Query”.
Click the “Query Options”.
- Enter relative time.
- Add time shift.
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)
- different types of charts available.
- 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”.