Search K
Appearance
Dashboards provide an overview of pre-defined metrics relevant to a particular goal or process. Associated metrics are displayed using graphs, charts, or other visual elements.
To build a dashboard simply create a class that implements the IDashboard
interface.
There are two interface members that must be implemented:
string Title
The dashboard title as it will be listed in the sidebar.IList<IMetricDefinition\> MetricDefinitions
Defines the list of metrics to be displayed on the dashboard. See Building Metrics for more details.A dashboard implementation might look like this:
using Linkerion.Centias.Displayables.Metrics;
using Linkerion.Centias.Pages.Dashboards;
public class CustomDashboard : IDashboard
{
public string Title { get; } = "My Dashboard";
public IList<IMetricDefinition> MetricDefinitions =>
[
// Add metrics here
];
}
There are currently four types of metrics available in Centias:
Displays the distribution of values across various categories using a pie chart. See Distribution Metrics for more details.
Visualizes the progress towards a pre-defined target value in the form of a progress bar. See Progress Metrics for more details.
Shows the development of values over time in a line chart. See Trend Metrics for more details.
Displays an absolute value at the current point of time. Enables users to view values from 30, 60, and 90 days ago along with their percentage changes. See Value Metrics for more details.
Dashboards can be protected with the [Authorize]
attribute, allowing only logged-in users that fulfill the authorization requirements to access them. This feature only works in combination with Authentication.
using Linkerion.Centias.Displayables.Metrics;
using Linkerion.Centias.Pages.Dashboards;
[Authorize(Roles = "Manager")]
public class CustomDashboard : IDashboard
{
public string Title { get; } = "My Dashboard";
public IList<IMetricDefinition> MetricDefinitions =>
[
// Add metrics here
];
}