corrade-nucleus-nucleons – Diff between revs 1 and 11

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
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 54... Line 54...
54 fontSize: '12px', 54 fontSize: '12px',
55 color: '#666666' 55 color: '#666666'
56 }; 56 };
Line 57... Line -...
57   -  
58   -  
59 /** -  
60 * Define hasData functions for series. These return true if there are data points on this series within the plot area -  
61 */ -  
62 function hasDataPie() { -  
Line 63... Line 57...
63 return !!this.points.length; /* != 0 */ 57  
-   58  
-   59  
-   60 // Define hasData function for non-cartesian seris. Returns true if the series
-   61 // has points at all.
-   62 each([
-   63 'bubble',
-   64 'gauge',
-   65 'heatmap',
-   66 'pie',
64 } 67 'treemap',
65   68 'waterfall'
-   69 ], function(type) {
-   70 if (seriesTypes[type]) {
66 each(['pie', 'gauge', 'waterfall', 'bubble', 'treemap'], function(type) { 71 seriesTypes[type].prototype.hasData = function() {
67 if (seriesTypes[type]) { 72 return !!this.points.length; /* != 0 */
Line -... Line 73...
-   73 };
-   74 }
-   75 });
-   76  
68 seriesTypes[type].prototype.hasData = hasDataPie; 77 /**
69 } 78 * Define hasData functions for series. These return true if there are data
70 }); 79 * points on this series within the plot area.
Line 71... Line 80...
71   80 */
Line 132... Line 141...
132 if (series[i].hasData() && !series[i].options.isInternal) { 141 if (series[i].hasData() && !series[i].options.isInternal) {
133 return true; 142 return true;
134 } 143 }
135 } 144 }
Line 136... Line 145...
136   145  
137 return false; 146 return chart.loadingShown; // #4588
Line 138... Line 147...
138 }; 147 };
139   148  
140 /** 149 /**