2

I need to show data points on the line chart, i.e. which appear on mouse over at a point, i need them all displayed by default i.e. not by mouse over. Any clues?

1 Answer 1

16

You can use

data.addColumn({type: 'string', role: 'annotation'});

and add one more value at the time of adding record with data.addRows of type string.

That will be shown just above the point on chart.

Thanks!

3
  • if that solution works for you, then could you please approve my answer and close this question ? :)
    – Smit
    Jan 2, 2012 at 17:01
  • Not the original author, but much obliged.
    – Sam Dufel
    Apr 5, 2012 at 18:13
  • Much obliged! I'm trying to do this as well, but with the data feeding from MySQL would you be able to help? array('label' => 'process_name', 'type' => 'string'), I have added array('label' => 'process_name', 'type' => 'string' 'role' => 'annotation') BUT it displayes the numbers BUT the line chart went away any thoughts?
    – Nomad
    Feb 6, 2014 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.