Home forums Using CanvasJS tooltip vs legend

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13253

    sboutros
    Member

    Hello,
    First of all, we love CanvasJS!
    We’re using the tooltip to display the values as the user mouses through the graph.
    Some users report that the tooltip placement obscures the graph.
    After reading the docs to try to find a solution…. 2 questions:
    1) Is there a way to position the tooltip so it is not overlaying the graph?
    2) Ideally, can we just put the values in the legend, that way we know they won’t obscure the graph?
    Either approach would suffice.

    Thanks!

    #13266

    Vishwas R
    Keymaster

    @sboutros,

    You can fix the position of toolTip with the help of css. Please check this jsfiddle for the same.

    If you like to show values in legend by disabling toolTip, you can set toolTip.enabled to false and change legendText dynamically on mouseover event on every dataPoint. Please check this jsfiddle for the same.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.