Using the dynamic absolute position of the canvas, even for relative placement of the chart
Using the dynamic absolute position of the canvas, even for relative placement of the chart

This will work with both relative and absolute position for the chart and will apply the tooltips appropriately. I have tested in a normal context and then also using the chart in the second column of two column table i.e. in a different position on the screen. Without this, the default tooltips will appear at the same position no matter where the chart is placed. They will appear misplaced. The fix I have provided allows the tooltips to appear smoothly with the chart, no matter where it is placed on the web page.
nnnick/Chart.js,ritesrnjn/charts,supernovel/Chart.js,amir-hadzic/Chart.js,2Ring/Chart.js,avlcodemonkey/Chart.js,bokysan/Chart.js,salzhrani/Chart.js,bokysan/Chart.js,thebenedict/Chart.js,ritesrnjn/charts,nicktiberi/Chart.js,panzarino/Chart.js,supernovel/Chart.js,avlcodemonkey/Chart.js,chartjs/Chart.js,amir-hadzic/Chart.js,potatopeelings/Chart.js,jeffesp/Chart.js,ashiguruma/Chart.js,Magnetic/Chart.js,potatopeelings/Chart.js,Magnetic/Chart.js,nicktiberi/Chart.js,touletan/Chart.js,ldwformat/Chart.js,salzhrani/Chart.js,rvaidya/Chart.js,el-ee/Chart.js,el-ee/Chart.js,touletan/Chart.js,touletan/Chart.js,simonbrunel/Chart.js,Tutuchan/Chart.js,panzarino/Chart.js,simonbrunel/Chart.js,rvaidya/Chart.js,chartjs/Chart.js,jtcorbett/Chart.js,touletan/Chart.js,jtcorbett/Chart.js,chartjs/Chart.js,ldwformat/Chart.js,pombredanne/Chart.js,chartjs/Chart.js,ralic/Chart.js,CAYdenberg/Chart.js-ErrorBars,2Ring/Chart.js