0

I have highcharts displaying a custom marker based on y value, and I have highcharts displaying x,y values with a given tickerinval. When I put the two together, highcharts chokes on parsing the marker value, I believe it assumes the y value is a date also, but not sure. Any help is greatly appreciated. the jsfiddle: http://jsfiddle.net/indefire/WQmqN/ Specifically when I change line 50 of the fiddle diastolics.push([dateUTC,this.diastolic]); to diastolics.push([dateUTC,evaluateDiastolic(this.diastolic)];

but it works fine in this fiddle http://jsfiddle.net/indefire/VhQMn/2/ where time is not equidistant and the x values are just dates added via

xAxis: { categories: readingDates, type: 'datetime',

Thanks again!

4

1 回答 1

0

您应该使用类别或日期时间,而不是两者。如果您想为点自定义标记,您可以使用点对象。而不是[dateUTC,this.diastolic]你可以使用

{
   x: dateUTC,
   y: diastolic,
   marker: {
      symbol:'triangle'
   }
}
于 2013-06-14T12:33:23.893 回答