ludo.chart.ScatterDataSource

ludo.chart.


new ludo.chart.ScatterDataSource(config, minX, minY, maxX, maxy)

Data Source for Scatter Charts

Parameters:
Name Type Description
config Object
minX function

Function returning minX value for the chart. Default is minimum x of data. You will typically return
0 here if the chart should start at zero.

minY function

function returning minY value for the chart

maxX function

Function returning maxX value for the chart

maxy function

Function returning maxY value for the chart

Source:

Extends

Members


maxVal

Max value in data array

Properties:
Name Type Description
maxVal Number
Inherited From:
Source:

maxValAggr

Aggregated max value in the data array. Sum value of child data.

Properties:
Name Type Description
maxValAggr Number
Inherited From:
Source:
Example
[
{
     "country": "United Kingdom",
     "children": [
         { "name":"0-14", "people" : 5000 }, { "name":"15-64", "people" : 20000 }, { "name":"65-", "people" : 4000 }
     ]
},
{
     "country": "Germany",
     "children": [
         { "name":"0-14", "people" : 6000 }, { "name":"15-64", "people" : 29000 }, { "name":"65-", "people" : 4000 }
     ]
}
]
// maxValAggr will here be 39000 (Sum children of "Germany").

minVal

Min value in data array

Properties:
Name Type Description
minVal Number
Inherited From:
Source: