Home Forums Chart Support Tooltip Width and Position Reply To: Tooltip Width and Position

#34016

@nehamahajan,

You can customize the max-width of tooltip & it’s content by setting following CSS style properties for tooltip & it’s children.

.wordwrap { 
   white-space: pre-wrap;
}
.canvasjs-chart-tooltip * {
  max-width: 200px !important; 
}
.canvasjs-chart-tooltip {
  left: 250px !important;
  width: 200px;
}

Please take at this JSFiddle for complete code.
Fixing the Position of Tooltip


Vishwas R
Team CanvasJS