Anchor | ||||
---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
| ||||
This panel only supports Neo4j Datasource. |
Info |
---|
Configurations are made in Grafana. |
In this section, learn how to configure an InSights Chart.
The steps are given below -
Panel | |
---|---|
|
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(Used when time series is also required, and specified in the Neo4j query).
- Enter Data Join Instructions(Used when time series is also required, and specified in the Neo4j query).
- Click “Load Chart” to load different types of charts available.
- Click “Save Chart” to save the chart.
- Use the below instructions if you need to plot graph with respect to time.
Panel |
---|
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”.