corrade-nucleus-nucleons – Diff between revs 1 and 11
?pathlinks?
Rev 1 | Rev 11 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | /** |
1 | /** |
|
2 | * @license Highcharts JS v5.0.10 (2017-03-31) |
2 | * @license Highcharts JS v5.0.12 (2017-05-24) |
|
3 | * Data module |
3 | * Data module |
|
4 | * |
4 | * |
|
5 | * (c) 2012-2017 Torstein Honsi |
5 | * (c) 2012-2017 Torstein Honsi |
|
6 | * |
6 | * |
|
7 | * License: www.highcharts.com/license |
7 | * License: www.highcharts.com/license |
|
Line 27... | Line 27... | |||
27 | |
27 | |
|
28 | // Utilities |
28 | // Utilities |
|
29 | var win = Highcharts.win, |
29 | var win = Highcharts.win, |
|
30 | doc = win.document, |
30 | doc = win.document, |
|
- | 31 | each = Highcharts.each, |
||
31 | each = Highcharts.each, |
32 | objectEach = Highcharts.objectEach, |
|
32 | pick = Highcharts.pick, |
33 | pick = Highcharts.pick, |
|
33 | inArray = Highcharts.inArray, |
34 | inArray = Highcharts.inArray, |
|
34 | isNumber = Highcharts.isNumber, |
35 | isNumber = Highcharts.isNumber, |
|
35 | splat = Highcharts.splat, |
36 | splat = Highcharts.splat, |
|
Line 116... | Line 117... | |||
116 | |
117 | |
|
117 | // Loop all seriesMappings and constructs SeriesBuilders from |
118 | // Loop all seriesMappings and constructs SeriesBuilders from |
|
118 | // the mapping options. |
119 | // the mapping options. |
|
119 | each((options && options.seriesMapping) || [], function(mapping) { |
120 | each((options && options.seriesMapping) || [], function(mapping) { |
|
120 | var builder = new SeriesBuilder(), |
- | ||
121 | name, |
121 | var builder = new SeriesBuilder(), |
|
122 | numberOfValueColumnsNeeded = individualCounts[seriesIndex] || getValueCount(globalType), |
122 | numberOfValueColumnsNeeded = individualCounts[seriesIndex] || getValueCount(globalType), |
|
123 | seriesArr = (chartOptions && chartOptions.series) || [], |
123 | seriesArr = (chartOptions && chartOptions.series) || [], |
|
124 | series = seriesArr[seriesIndex] || {}, |
124 | series = seriesArr[seriesIndex] || {}, |
|
Line 125... | Line 125... | |||
125 | pointArrayMap = getPointArrayMap(series.type || globalType) || ['y']; |
125 | pointArrayMap = getPointArrayMap(series.type || globalType) || ['y']; |
|
126 | |
126 | |
|
127 | // Add an x reader from the x property or from an undefined column |
127 | // Add an x reader from the x property or from an undefined column |
|
Line 128... | Line 128... | |||
128 | // if the property is not set. It will then be auto populated later. |
128 | // if the property is not set. It will then be auto populated later. |
|
129 | builder.addColumnReader(mapping.x, 'x'); |
129 | builder.addColumnReader(mapping.x, 'x'); |
|
130 | |
130 | |
|
131 | // Add all column mappings |
131 | // Add all column mappings |
|
132 | for (name in mapping) { |
132 | objectEach(mapping, function(val, name) { |
|
133 | if (mapping.hasOwnProperty(name) && name !== 'x') { |
133 | if (name !== 'x') { |
|
Line 134... | Line 134... | |||
134 | builder.addColumnReader(mapping[name], name); |
134 | builder.addColumnReader(val, name); |
|
135 | } |
135 | } |
|
136 | } |
136 | }); |
|
137 | |
137 | |