C# Class PersonalAnalytics.Visualizations.VisHelper

Afficher le fichier Open project: sealuzh/PersonalAnalytics Class Usage Examples

Méthodes publiques

Méthode Description
ChartTitle ( string title = "Visualization" ) : string

Returns a formated chart title with a specified title or a default one if there is none.

GetVisualizationDateFromUrlParameters ( HttpReqResp req ) : DateTimeOffset

Parses the request parameter (for "date") as a DateTime or returns a fallback value if there is no or if it fails.

GetVisualizationTypesFromUrlParameters ( HttpReqResp req ) : string
NotEnoughData ( string message = "We don't yet have enough data to show you a retrospection of your workday." ) : string

Returns a message that says that there is not enough data to provide a visualization and a standard message if no other is specified.

Method Details

ChartTitle() public static méthode

Returns a formated chart title with a specified title or a default one if there is none.
public static ChartTitle ( string title = "Visualization" ) : string
title string
Résultat string

GetVisualizationDateFromUrlParameters() public static méthode

Parses the request parameter (for "date") as a DateTime or returns a fallback value if there is no or if it fails.
public static GetVisualizationDateFromUrlParameters ( HttpReqResp req ) : DateTimeOffset
req HttpReqResp
Résultat DateTimeOffset

GetVisualizationTypesFromUrlParameters() public static méthode

public static GetVisualizationTypesFromUrlParameters ( HttpReqResp req ) : string
req HttpReqResp
Résultat string

NotEnoughData() public static méthode

Returns a message that says that there is not enough data to provide a visualization and a standard message if no other is specified.
public static NotEnoughData ( string message = "We don't yet have enough data to show you a retrospection of your workday." ) : string
message string
Résultat string