How Can I Limit The Length Of A Highcharts Plotline On The Y-axis For A Boxplot?
I am using highchairs 3.0 to create a graph that has N Boxes on it. So far so good. However, one of the user desires is to draw a few plotLines (based on values on the Yaxis) for
Solution 1:
The best way that I have found to do this is by extending the marker symbol types to create a horizontal line. Use this as the marker symbol type for a scatter series to accomplish what you're looking for.
Highcharts.Renderer.prototype.symbols.hline = function(x, y, width, height) {
return ['M',x ,y + height / 2,'L',x+width,y + width / 2];
};
Example:
Required inputs of: radius, lineWidth, color
((also a useful way to build bullet charts:
))
Post a Comment for "How Can I Limit The Length Of A Highcharts Plotline On The Y-axis For A Boxplot?"