C# 클래스 PersonalAnalytics.Visualizations.VisHelper

파일 보기 프로젝트 열기: sealuzh/PersonalAnalytics 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ChartTitle() 공개 정적인 메소드

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
리턴 string

GetVisualizationDateFromUrlParameters() 공개 정적인 메소드

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
리턴 DateTimeOffset

GetVisualizationTypesFromUrlParameters() 공개 정적인 메소드

public static GetVisualizationTypesFromUrlParameters ( HttpReqResp req ) : string
req HttpReqResp
리턴 string

NotEnoughData() 공개 정적인 메소드

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
리턴 string