Skip to content

140_Standard_Values

FVANCOP edited this page Dec 23, 2014 · 3 revisions

Previous Page          Next Page          Table of content

Standard values for options

Font Family (source : chartjs.org)

When declaring fonts, the library explorercanvas requires the font name to be in single quotes inside the string. For example, instead of your scaleFontFamily property being simply "Arial", explorercanvas support, use "'Arial'" instead. ChartNew.js does this for default values. When you have to specify a font family in a parameter, you can specify any valid font value. See following site to get a list of font : http://www.tutorialspoint.com/html5/html5_fonts.htm

Font Style

In the parameters for font style, you can define lot of things… The most interesting ones are : “italic”, “bold”, “normal” and “italic bold” See following site to get full description of what you can define : http://www.w3schools.com/tags/canvas_font.asp

Color

The color attribute should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL. See following site to get a full description of what you can define : http://www.w3schools.com/cssref/css_colors_legal.asp

Mouse Actions

Some parameters have to define a mouse action : a specific action will be proceeded when you perform an action with the mouse on the chart. For instance, when the annotateDisplay option is set to true, the value of an area is displayed when the mouse is hover an area. By defaut, the mouse action associated to the annotateDiplay is “mousemove; So when you move the mouse over an area, the annotate is displayed. If you prefer that the action is a right click over the area, change option annotateFunction to “mousedown right”.

Allowed values for the mouse options : “mousemove”,”mousedown right”, “mousedown left”, “mousedown middle”

Previous Page          Next Page          Top of Page

Clone this wiki locally