Method | Description | |
---|---|---|
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 |
Prepares the timeline axis, setting the first and last entry of the workday as start and end point
|
public static CreateChartHtmlTitle ( string visName ) : string | ||
visName | string | |
return | string |
public static Error ( string message = "An error occurred." ) : string | ||
message | string | |
return | string |
public static FormatChartTitle ( string title = "Visualization" ) : string | ||
title | string | |
return | string |
public static NotEnoughData ( string message = "We don't yet have enough data to show you a retrospection of your workday." ) : string | ||
message | string | |
return | string |
public static PrepareTimeAxis ( DateTimeOffset date, int>.Dictionary |
||
date | DateTimeOffset | |
dto | int>.Dictionary | |
interval | int | |
return | void |