I'm using primefaces + jqplot to create a Horizontal and Stacked bar chart:
Code ( Example - Primefaces ):
http://www.primefaces.org/showcase/ui/chart/bar.xhtml
I need to add a line in chart like this image: ( Red line in Vertical )
http://peltiertech.com/Excel/pix1/AddLine.gif
Can i do this with Primefaces + Jqplot ? If it's possible, someone can help me to understand ?
Finally solved my problem:
1 - Add a extender in Managed Bean with name of extender:
2 - Create a javascript function in xhtml:
3 - Add a Canvas Overlay:
}
4 - This vertical/horizontal lines depend on the following files (using Primefaces 5.0):
You can find this file in Bitbucket Cleonello Jqplot.
5 - Add Labels and Tooltips with: Bitbucket Cleonello Jqplot - Support to canvas overlay lines.