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 | * Plugin for displaying a message when there is no data visible in chart. |
3 | * Plugin for displaying a message when there is no data visible in chart. |
|
4 | * |
4 | * |
|
5 | * (c) 2010-2017 Highsoft AS |
5 | * (c) 2010-2017 Highsoft AS |
|
6 | * Author: Oystein Moseng |
6 | * Author: Oystein Moseng |
|
7 | * |
7 | * |
|
Line 47... | Line 47... | |||
47 | // useHTML: false |
47 | // useHTML: false |
|
48 | }; |
48 | }; |
|
Line 49... | Line -... | |||
49 | |
- | ||
50 | |
- | ||
51 | |
- | ||
52 | /** |
- | ||
53 | * Define hasData functions for series. These return true if there are data points on this series within the plot area |
- | ||
54 | */ |
- | ||
Line 55... | Line 49... | |||
55 | function hasDataPie() { |
49 | |
|
- | 50 | |
||
- | 51 | |
||
- | 52 | |
||
- | 53 | // Define hasData function for non-cartesian seris. Returns true if the series |
||
- | 54 | // has points at all. |
||
- | 55 | each([ |
||
- | 56 | 'bubble', |
||
- | 57 | 'gauge', |
||
- | 58 | 'heatmap', |
||
56 | return !!this.points.length; /* != 0 */ |
59 | 'pie', |
|
57 | } |
60 | 'treemap', |
|
- | 61 | 'waterfall' |
||
- | 62 | ], function(type) { |
||
58 | |
63 | if (seriesTypes[type]) { |
|
59 | each(['pie', 'gauge', 'waterfall', 'bubble', 'treemap'], function(type) { |
64 | seriesTypes[type].prototype.hasData = function() { |
|
Line -... | Line 65... | |||
- | 65 | return !!this.points.length; /* != 0 */ |
||
- | 66 | }; |
||
- | 67 | } |
||
- | 68 | }); |
||
60 | if (seriesTypes[type]) { |
69 | |
|
61 | seriesTypes[type].prototype.hasData = hasDataPie; |
70 | /** |
|
62 | } |
71 | * Define hasData functions for series. These return true if there are data |
|
Line 63... | Line 72... | |||
63 | }); |
72 | * points on this series within the plot area. |
|
Line 121... | Line 130... | |||
121 | if (series[i].hasData() && !series[i].options.isInternal) { |
130 | if (series[i].hasData() && !series[i].options.isInternal) { |
|
122 | return true; |
131 | return true; |
|
123 | } |
132 | } |
|
124 | } |
133 | } |
|
Line 125... | Line 134... | |||
125 | |
134 | |
|
126 | return false; |
135 | return chart.loadingShown; // #4588 |
|
Line 127... | Line 136... | |||
127 | }; |
136 | }; |
|
128 | |
137 | |
|
129 | /** |
138 | /** |