Primefaces LineChart Values

Components, Ajax Framework, Utilities and More.
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: 8400
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.
Ronald van Kuijk
______________________________
PrimeFaces 5.2, PrimeFaces plus 0.0.2 | JbossWildfly 8.1| Mojarra 2.2.8
Fedora 21, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

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: 8400
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.
Ronald van Kuijk
______________________________
PrimeFaces 5.2, PrimeFaces plus 0.0.2 | JbossWildfly 8.1| Mojarra 2.2.8
Fedora 21, Firefox 'most recent'
Read the forum posting rules
Beginners: https://jsf.zeef.com/bauke.scholtz

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests