Home Forums Chart Support Tooltip Positioner

Tooltip Positioner

Viewing 2 posts - 1 through 2 (of 2 total)
  • #34073

    Hi CanvasJS Team,

    I need to show tooltip always at the bottom of the chart, but the left position of the tooltip will be relevant to the point on the chart.
    Is there any callback function for adjusting position provided on tooltip which gets called before a tooltip is shown so that user can calculate respective x and y co-ordinates where the tooltip should appear.



    You can fix the vertical position of tooltip by setting top & bottom CSS properties. Please find the necessary CSS styles mentioned below.

    .canvasjs-chart-tooltip {  
      top: 360px !important;
      bottom: auto !important;

    Please take a look at this JSFiddle for complete code.
    Fixing Vertical Position of Tooltip

    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.