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 |
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
- Inherited From:
- Source:
Properties:
Name Type Description maxVal
Number -
maxValAggr
-
Aggregated max value in the data array. Sum value of child data.
- Inherited From:
- Source:
Properties:
Name Type Description maxValAggr
Number 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
- Inherited From:
- Source:
Properties:
Name Type Description minVal
Number