We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26bccd5 + a8778da commit b84143aCopy full SHA for b84143a
highcharts-regression.js
@@ -1,6 +1,6 @@
1
-(function(factory) {
+(function(factory) {
2
"use strict";
3
-
+
4
if (typeof module === "object" && module.exports) {
5
module.exports = factory;
6
} else {
@@ -17,7 +17,7 @@
17
void 0;
18
}
19
20
- }
+ }
21
}(function (H) {
22
var processSerie = function (s, method, chart) {
23
if (s.regression && !s.rendered) {
@@ -455,7 +455,7 @@
455
bandwidth = bandwidth || 0.25;
456
457
var xval = data.map(function (pair) {
458
- return pair[0];
+ return pair.x || pair[0];
459
});
460
var distinctX = array_unique(xval);
461
if (2 / distinctX.length > bandwidth) {
@@ -464,7 +464,7 @@
464
465
466
var yval = data.map(function (pair) {
467
- return pair[1];
+ return pair.y || pair[1];
468
469
470
function array_unique(values) {
0 commit comments