Board index JavaServer Faces General Primefaces LineChart Values

Primefaces LineChart Values

Components, Ajax Framework, Utilities and More.

Post 30 Jul 2012, 15:55

Posts: 2
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?

Post 30 Jul 2012, 16:33
kukeltje Expert Member

Posts: 6275
Location: Netherlands
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 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/

Post 02 Aug 2012, 08:04

Posts: 2
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.

Post 02 Aug 2012, 09:55
kukeltje Expert Member

Posts: 6275
Location: Netherlands
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 4.0, PrimeFaces plus 0.0.2 | Jboss 7.2.0 | Mojarra 2.1.18
Fedora 19, Firefox 26.0
Read the forum posting rules
Beginners: http://www.coreservlets.com/JSF-Tutorial/jsf2/


Return to General