How do we do that?
I tried \n
which displays nothing and <br>
displays just <br>
.
There’s a request for a feature here but it’s added after the issue has been closed so I’m raising it here in a new issue.
How do we do that?
I tried \n
which displays nothing and <br>
displays just <br>
.
There’s a request for a feature here but it’s added after the issue has been closed so I’m raising it here in a new issue.
Comments are closed.
Copyright © 2021 Fantas...hit
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
Thanks @etimberg , this is a solution for what I asked but sadly for me it’s not the thing I need. However I modified this a bit for my code and here is where I am now.
Since I have the stacked values and I’m using
mode:'label'
for the tooltips i get the extra rows for every dataset I have. It could be what you wanted but I wanted to add some custom statistic that is connected to both of the columns.So I changed my
return
statemenet to:This way I get my statistics (
new line
&another line
) at the end of the tooltip but I still get the colored square of the last dataset in front of my statistics which I don’t know how to remove.@dbr0 sorry for the late reply. The coloured square is drawn for each label line. What you can do is use the after label callback to insert the extra data without drawing the square. But since you are only inserting the extra line at the end, it’s easier to use the footer callback