Class Index | File Index

Classes


Class Tee.Data

Main Tee.Data class to perform multi-dimensional queries and charts.
Defined in: <..\..\src\teechart-data.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<inner>  
accumulate(measure, value, total)
 
addDataSet(title, object, field, id)
 
addJSON(title, json, field, id)
 
applyStyle(chart, index)
 
Chart(canvas, title)
 
groupOther(data, max, label)
Groups small values into a single "other" value.
<inner>  
initTotal(total, Ids)
 
 
 
query(dimension, metric)
 
queryDim(m, dim, total)
 
slider(chart, items, x, y, width, height)
<inner>  
sumOfCount(total)
<inner>  
xmlToJson(xml)
Class Detail
Tee.Data()
Method Detail
<inner> accumulate(measure, value, total)
Parameters:
measure
value
total

{Tee.Data.Dimension} addDataSet(title, object, field, id)
Parameters:
{String} title
The string identifier for this dataset.
{object} object
The custom data for this dataset.
{String} field Optional, Default: ""
The object data optional field that contains an array.
{String} id Optional, Default: ""
The optional field in the array that uniquely identifies each array row.
Returns:
{Tee.Data.Dimension} Returns a top-level dimension.

addJSON(title, json, field, id)
Parameters:
title
json
field
id

applyStyle(chart, index)
Parameters:
chart
index

Chart(canvas, title)
Parameters:
canvas
title

groupOther(data, max, label)
Groups small values into a single "other" value. Requires sorted data.values in DESCENDING order. If there are more than "max" number of values, the rest are grouped and removed.
Parameters:
data
max
label

<inner> initTotal(total, Ids)
Parameters:
total
Ids

loadXMLDoc(url)
Parameters:
url

loadXMLString(text)
Parameters:
text

query(dimension, metric)
Parameters:
dimension
metric

queryDim(m, dim, total)
Parameters:
m
dim
total

slider(chart, items, x, y, width, height)
Parameters:
chart
items
x
y
width
height

<inner> sumOfCount(total)
Parameters:
total

<inner> xmlToJson(xml)
Parameters:
xml

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Jul 04 2014 13:24:59 GMT+0200 (CEST)