Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How we can save chart into .jpeg image when we using Primeface?  RSS feed

 
Parveen thakur
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure you can. On my system, the sample barchart wasn't an image, it was a collection of HTML5 elements. If you want an actual jpg image, you may have to employ some other charting tool.
 
Parveen thakur
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
barchart is object of CartesianChartModel of prime faces , My question was ,simply save it as and images like jpeg or png etc. Dear Tim Holloway this not HTML 5 element,
I want save <p:barChart > as an image.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What it is in your source code and what the rendering process produces on the client side are not the same object.

On the client side on my browser, it was not "an" HTML 5 element, it was a collection of HTML5 elements arranged so that they would look like a bar chart to the client plus have special properties such as highlighting when you rolled the mouse over a bar.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!