Primefaces LineChart Values

UI Components for JSF
Post Reply
tanmayw
Posts: 2
Joined: 30 Jul 2012, 15:48

30 Jul 2012, 15:55

Hi,

My requirement is to display the line chart with its values on its respective nodes.
As of now it happens when you mouseover on the nodes.
Can you please suggest a way how to show them direclty instead of mouseover?

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

30 Jul 2012, 16:33

I you look at the chart with e.g. firebug (the first thing you should do to check if you can change things by jsut using some css), you'd see that it is just one tooltip that is used which gets its value dynamically from the node you hover over. So that will not work. Have you had a look at the documentation?

Otherwise check the source code to see if something can be enhanced there.

tanmayw
Posts: 2
Joined: 30 Jul 2012, 15:48

02 Aug 2012, 08:04

I tried to chech the chart.js being used by LineChart component.
There making showToolTip:false hides the tooltip but the values are not at all dispalying. I want to display them on nodes as soon as the component is rendered on page.

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

02 Aug 2012, 09:55

yes, I know what you want, but if the component is 'created' the way it is,tgat will never work without changing the core code of the component.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests