C# 클래스 Shared.Helpers.VisHelper

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

공개 메소드들

메소드 설명
CreateChartHtmlTitle ( string visName ) : string

Get a the width of the item (already reduced with default side margin)

Get a the height of the item (already reduced with default title margin)

Gets the visualization name and creates a simple chart title by removing the whitespaces and lowercasing

Error ( string message = "An error occurred." ) : string

just display an error message in red

FormatChartTitle ( string title = "Visualization" ) : string

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

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.

PrepareTimeAxis ( DateTimeOffset date, int>.Dictionary dto, int interval ) : void

Prepares the timeline axis, setting the first and last entry of the workday as start and end point

메소드 상세

CreateChartHtmlTitle() 공개 정적인 메소드

Get a the width of the item (already reduced with default side margin) Get a the height of the item (already reduced with default title margin) Gets the visualization name and creates a simple chart title by removing the whitespaces and lowercasing
public static CreateChartHtmlTitle ( string visName ) : string
visName string
리턴 string

Error() 공개 정적인 메소드

just display an error message in red
public static Error ( string message = "An error occurred." ) : string
message string
리턴 string

FormatChartTitle() 공개 정적인 메소드

Returns a formated chart title with a specified title or a default one if there is none.
public static FormatChartTitle ( string title = "Visualization" ) : string
title string
리턴 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

PrepareTimeAxis() 공개 정적인 메소드

Prepares the timeline axis, setting the first and last entry of the workday as start and end point
public static PrepareTimeAxis ( DateTimeOffset date, int>.Dictionary dto, int interval ) : void
date DateTimeOffset
dto int>.Dictionary
interval int
리턴 void