Global

Members

cf

d3 script for charts of AggreSet

Copyright (c) 2019
Author:
  • Elitza Vasileva
  • Bernhard Pointner
Source:

(constant) chartTypes

d3 script for charts of AggreSet

Copyright (c) 2019
Author:
  • Elitza Vasileva
  • Bernhard Pointner
Source:

Methods

addNewVis(parent, dummy_id, id, title) → {void|string}

add new vis in specified parent with the dummy id
Source:
Parameters:
Name Type Description
parent
dummy_id
id
title
Returns:
Type:
void | string

cloneDummyNode(dummy_id) → {void|string}

Clone dummy node
Source:
Parameters:
Name Type Description
dummy_id
Returns:
Type:
void | string

cloneNode(selector) → {void|string}

Clone a specific node and return the node
Source:
Parameters:
Name Type Description
selector
Returns:
Type:
void | string

combinations(n, k) → {Array}

Calc n over k combinations
Source:
Parameters:
Name Type Description
n
k
Returns:
Type:
Array

getHeight(selector) → {number}

Get height of node by selector
Source:
Parameters:
Name Type Description
selector
Returns:
Type:
number

getLongestTextDimension(array, font)

compute and return the longest width of given text font in pixels.
Source:
Parameters:
Name Type Description
array String The text to be rendered.
font String The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").

getTextDimension(text, font)

Uses canvas.measureText to compute and return the width of the given text of given font in pixels.
Source:
See:
Parameters:
Name Type Description
text String The text to be rendered.
font String The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").

getVisHeader(vis_container) → {void|string}

Get visualization header
Source:
Parameters:
Name Type Description
vis_container
Returns:
Type:
void | string

getWidth(selector) → {number}

Get width of node by selector
Source:
Parameters:
Name Type Description
selector
Returns:
Type:
number

init(res)

Initializes all the charts and the crossfilter by a response obtained by the data reading
Source:
Parameters:
Name Type Description
res

initChart(chartType, …restArgs) → {Chart}

Initializes the chart according the to the chart type
Source:
Parameters:
Name Type Attributes Description
chartType can be horizontal, vertical, line or aggreset
restArgs <repeatable>
the rest of the arguments
Returns:
Type:
Chart

previewAll(reset)

Preview method for all the charts
Source:
Parameters:
Name Type Description
reset if true reset preview sata to active data

updateAll()

Update method for all the charts
Source:

updateDataTable()

Update global data table
Source: