Data Panel Dashboard (DPD)
Data Panels
Single Value
Single value data panels are designed to display a single value to users.
![](../../__attachments/149094421/image-20230228-004517.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
Example SQL Query
select count(*) from [driverDB].[dbo].[Drivers]
Data Table
Data table data panels are designed to display a table of data to users.
![](../../__attachments/149094421/image-20230228-005454.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
Example SQL Query
SELECT TOP (25)
[Drivers].[Name] AS 'DriverName',
[Drivers].[State],
[Drivers].[Organisation],
[FastestResult].[Car],
[FastestResult].[TotalTime] as time(2)) as nvarchar) AS 'TotalTime',
(Select count(*) from results where Driver = FastestResult.Driver) as #,
[FastestResult].[DateTime] AS 'RaceTime'
FROM DriversFastestTimes as FastestResult
INNER JOIN [rimpa].[dbo].[Drivers] ON Drivers.ID = FastestResult.Driver
ORDER BY TotalTime
Spacer
A spacer data panel is an invisible element that consumes space that can be used to help position other data panels.
Chart
A chart data panel is designed to display a table of data in a selected chart type.
![](../../__attachments/149094421/image-20230228-010237.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
Chart Types
You can select the way the chart will display. The current options are Bar chart, Line chart and Pie chart
They may need specific values in specific orders to correctly render.
Bar
Below is an example of the SQL query and how that will render in a bar chart.
![](../../__attachments/149094421/image-20230228-005714.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
SELECT Job, Hours
FROM sampleNumeric
Line
Below is an example of the SQL query and how that will render in a line chart.
![](../../__attachments/149094421/image-20230228-005311.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
SELECT FORMAT([Date],'dd/MM/yyyy') as Date, SUM(Hours) AS Hours
FROM sampleNumeric
GROUP BY Date
Pie
![](../../__attachments/149094421/image-20230228-005245.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
SELECT Job, SUM(Hours) AS Hours
FROM sampleNumeric
GROUP BY Job
Multiple Series
Line and Bar charts can support displaying multiple series of data in the one chart.
![](../../__attachments/149094421/image-20230417-130056.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
![](../../__attachments/149094421/image-20230417-130136.png?inst-v=59c6a4cd-ce4b-40b8-9de9-76dc92d7fb02)
SELECT Job, Team_A_Hours AS "Team A Hours", Team_B_Hours AS "Team B Hours"
FROM sampleNumeric