Config object for variables that can be changed with module:columnGraphs.setConf and retrieved with module:columnGraphs.getConf.
- Source:
Members
(static) all :string
String for select option that selects all categories.
Type:
- string
- Default Value:
- module:columnGraphs.defaults.all
- Source:
(static) colorChoices :Array
Color used for the different choices (stacked bars). Has exception in module:columnGraphs.setConf so the given array of colors is automatically put in d3.scaleOrdinal().
Type:
- Array
- Source:
(static) colorCompare :string
Color used for the selected choice (compare groups).
Type:
- string
- Source:
(static) colorHigher :string
Color used for the choice that has higher value than selected (compare groups).
Type:
- string
- Source:
(static) colorLower :string
Color used for the choice that has lower value than selected (compare groups).
Type:
- string
- Source:
(static) colorUnselected :string
Color used for choices that are hidden because they are unselected (stacked bars, compare groups).
Type:
- string
- Source:
(static) dataCount :boolean
Tells module:columnGraphs.initData whether to count total values or to look for 'Count' key to get total values.
Type:
- boolean
- Source:
(static) font :int
Font used for texts.
Type:
- int
- Source:
(static) fontSize :int
Main font size used for most texts.
Type:
- int
- Source:
(static) fontSizeAxis :int
Font size for axis texts. Default is 2px smaller than main font size.
Type:
- int
- Source:
(static) fontSizeLegend :int
Font size for choice legend texts. Default is 1px smaller than main font size.
Type:
- int
- Source:
(static) graphs :Array
Array containing arrays of strings for graph select. First element in array is select text and second element is select value.
Default is [['Select graph','none'],['Stacked bars','stacked'],['Compare categories','compare']].
Type:
- Array
- Source:
(static) graphSelectEnabled :boolean
Enables select for changing graph type in the options div.
Type:
- boolean
- Source:
(static) height :int
Max height for main graph svg.
Type:
- int
- Source:
(static) locale :string
Locale to use. Default is D3's default locale 'en-US'. Check https://unpkg.com/d3-format/locale/ for a list of possible values.
Type:
- string
- Source:
(static) mainDiv :string
Id of the main div.
Type:
- string
- Source:
(static) margin :Object
Margins for main graph svg.
Type:
- Object
- Source:
(static) marginAuto :Object
Automatically changes left and bottom margins to fit texts.
Type:
- Object
- Source:
(static) marginExtra :int
Extra left margin for columnGraphs-graph-svg, fixes it going outside of columnGraphs-main svg.
Type:
- int
- Source:
(static) marginOptions :int
Margins for options div.
Type:
- int
- Source:
(static) marginSelect :int
Margins for options div.
Type:
- int
- Source:
(static) none :string
String for select option that doesn't choose any of the groups or categories.
Type:
- string
- Source:
(static) sortStrings :Array
Array containing three strings for sort select. Default is ['Default order','Ascending','Descending'].
Type:
- Array
- Source:
(static) valueAs :Array
Array that contains type of value for y, D3 format and optional text. To change from showing percentage on y to absolute values with decimal notation (rounded to significant digits) would be ['absolute','r'].
Third value in array is used to add text after the value, for example set ['absolute','d',' pcs'] would be decimal notation (rounded to integers) and ' pcs' added after the value.
Type:
- Array
- Source:
(static) values :boolean
True to show value texts on graph.
Type:
- boolean
- Source:
(static) valuesTotal :boolean
True to show total value texts on stacked bars graph.
Type:
- boolean
- Source:
(static) width :int
Max width for main graph svg. Has exception in module:columnGraphs.setConf so originalWidth also gets updated.
Type:
- int
- Source:
(static) widthMin :int
Minimum width for main graph svg.
Type:
- int
- Source:
(static) widthOptions :int
Max width for options svg.
Type:
- int
- Source:
(static) widthScrollbar :int
Width of the scrollbar.
Type:
- int
- Source: