Chart.js: Can not get caret to show with custom tooltips or change tooltips position

Created on 12 Jul 2019  路  4Comments  路  Source: chartjs/Chart.js

First off want to say that I love chart.js and it has great documentation. The only problems I have had so far is trying to figure out how to get the caret for the tooltips to show when using custom tooltips and also being able to change the position of the tooltips area. When using caret size and other related things to the caret I can never get a change.

support

Most helpful comment

try this

.bottom:after {
bottom: 100%;
left: 17px;
border: solid #e20074;
content: " ";
position: absolute;
pointer-events: none;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #ffffff;
border-width: 12px;
margin-left: -15px;
}

for custom caret css you can get from here . http://www.cssarrowplease.com/

All 4 comments

try this

.bottom:after {
bottom: 100%;
left: 17px;
border: solid #e20074;
content: " ";
position: absolute;
pointer-events: none;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #ffffff;
border-width: 12px;
margin-left: -15px;
}

for custom caret css you can get from here . http://www.cssarrowplease.com/

The above solution is correct. The caret settings wont apply with a custom tooltip since it is all HTML so you'll need to style your HTML div accordingly to get the arrow.

can you provide please the full code ? still not able to make the caret displayed

@etimberg @hrupesh
Could u share the complete code? We couldn't achieve the desired result. Kindly help on this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gouthamrv picture gouthamrv  路  3Comments

HeinPauwelyn picture HeinPauwelyn  路  3Comments

nanospeck picture nanospeck  路  3Comments

akashrajkn picture akashrajkn  路  3Comments

Woogles picture Woogles  路  3Comments