It seems that the _loess() function assumes input data will always be a simple, two-values array. But Highcharts allows a much more detailed description of each point. For example I'm using a line chart with categories on the X-axis and each datapoint looks like that:
That's correct.
We have pending the support for non-integer x axis as you said, not only for loess, for all regression types.
Will keep keep this ticket open as holder for different input data structure
It seems that the
_loess()
function assumes input data will always be a simple, two-values array. But Highcharts allows a much more detailed description of each point. For example I'm using a line chart with categories on the X-axis and each datapoint looks like that:{ y: 123, name: "category name", someCustomAttribute: 42 }
and the regression module obviously fails when trying to read
pair[0]
andpair[1]
. The solution here would require at least two steps:.data
property as an array ofPoints
that contain.x
and.y
properties