You must be logged in to post your query.
Home › Forums › Report Bugs › HTML Tooltip broken
Hello CanvasJS-Team,
in one of the last releases the tooltip with html-content is broken. (Switched from v1.9.5.1 GA to v1.9.7 GA)
Testcase: http://jsfiddle.net/h0jwajxn/
You changed function ToolTip.prototype.getToolTipInnerHTML These are the relevant lines: `this.content = toolTipContent; for (var i = 0; i < this.chart.data.length; i++) { this.chart.data[i].toolTipContent = this.content; }`
Fix: `this.content = toolTipContent || toolTipInnerHtml; for (var i = 0; i < this.chart.data.length; i++) { this.chart.data[i].toolTipContent = this.content; }`
Please add the fix to your code-base, too.
Thanks
@schuerle,
It seems to be working fine. I think you have confused contentFormatter with content. contentFormatter is a function whereas content is an attribute. Please refer this updated jsfiddle for the same.
If you are still facing any issue, kindly create a jsfiddle reproducing the same so that we can look into it and help you out.
Thank You @Vishwas R.
@Vishwas your right. Thanks! Switching the from content to contentFormater works, too.
You must be logged in to reply to this topic. Login/Register