Chart export does not cope with hidden data series

UI Components for JSF
Post Reply
User avatar
doughnut
Posts: 27
Joined: 30 Sep 2014, 16:18

19 Dec 2014, 15:47

Hello together

I am dealing with an issue that is reproducible in the PrimeFaces showcase:

http://www.primefaces.org/showcase/ui/c ... port.xhtml

Data series in the chart can be hidden by clicking on their name in the legend. When doing so, the name becomes stricken through, and the series disappears from the chart. So far, so good.

When exporting the chart containing hidden series, the export image does show the "hidden" series as well, thus user-selected hiding is not taken into account. Additionally (and this is the real problem), the user-hidden data series is drawn shifted into the export plot, thereby falsifying the chart.

Did anyone here find a way to circumvent this? That is, is there a way to make the export plot
- either have hidden data series in the chart hidden as well (i.e. export plot corresponding 1:1 to original chart)
- or show all data series, but without the error of hidden data series shifted (horizontally and/or vertically)?
PrimeFaces v. 5.0
JSF: MyFaces impl. v. 2.2.2
Server WildFly v. 8.1.0
IntelliJ IDEA 13.1.3

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Dec 2014, 16:06

I think you have to report this at the corresponding jqplot forum, since I am (almost 100%) sure, there is nothing PF does in this regard or can prevent.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

20 Dec 2014, 07:38

This issue is existed/reported in PF issue tracker as well https://code.google.com/p/primefaces/is ... il?id=7701
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

User avatar
doughnut
Posts: 27
Joined: 30 Sep 2014, 16:18

22 Dec 2014, 10:32

I see.
Since I am looking for some low-budget solution and hiding data series is not a requirement in the application - is there a way to simply deactivate manual hiding of data series?
PrimeFaces v. 5.0
JSF: MyFaces impl. v. 2.2.2
Server WildFly v. 8.1.0
IntelliJ IDEA 13.1.3

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

22 Dec 2014, 11:02

Search the jqplot forum for this. Not specific to pf charts

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests