Why the "Charts - Date" showcase don't show Label?

UI Components for JSF
Post Reply
bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

04 Sep 2014, 06:18

In the backing bean of Charts - Date .
the ChartView.java source code include the code:" series2.setLabel("Series 2");",but I found it could not show in the Chart!
How can I let it show in the Chart?
please help me,thank you!
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

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

04 Sep 2014, 09:53

Could you please elaborate more.As per showcase example Series2 label displayed in the chart as well.http://www.primefaces.org/showcase/ui/chart/line.xhtml
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

brasta78
Posts: 4
Joined: 23 May 2015, 23:53

06 Oct 2017, 14:32

I encountered the same problem - Charts - Date doesn't show labels. The same in showcase: https://www.primefaces.org/showcase/ui/chart/date.xhtml
although in chartview model there is code: series1.setLabel("Series 1");

brasta78
Posts: 4
Joined: 23 May 2015, 23:53

13 Oct 2017, 17:53

finally I got to work - in showcase it is missing this line of code:

dateModel.setLegendPosition("ne");

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests