开发者

Highlight sections of the canvas in jqPlot?

开发者 https://www.devze.com 2023-02-12 01:54 出处:网络
I\'m using jqPlot for some charting. I would like to highlight regions of the background of the chart. I would like to specify rectangles bounded by the values on an axis that are the entire length of

I'm using jqPlot for some charting. I would like to highlight regions of the background of the chart. I would like to specify rectangles bounded by the values on an axis that are the entire length of the opposite axis.

Is this do-able out of the box, or must I alter the code? Would this be a good usage for a plugin? Is there documentation on how to write one?

Update: Looks like the fill option on the series might be开发者_开发百科 helpful.

Update 2: Or maybe the GridCanvasRenderer or the ShapeRenderer.


I implemented it myself with about 20 lines of code in CanvasGridRenderer. Works pretty well.

0

精彩评论

暂无评论...
验证码 换一张
取 消