Page 1 of 1

Primefaces LineChart Values

Posted: 30 Jul 2012, 15:55
by tanmayw
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?

Re: Primefaces LineChart Values

Posted: 30 Jul 2012, 16:33
by kukeltje
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.

Re: Primefaces LineChart Values

Posted: 02 Aug 2012, 08:04
by tanmayw
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.

Re: Primefaces LineChart Values

Posted: 02 Aug 2012, 09:55
by kukeltje
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.