Comments (3)
Looking at the code it seems it only applies the padding when there are multiple lines since it only applies between the lines and not around the line. Don't know if this is intended behaviour and thus a docs issue or if it is an issue with how we build the tooltip.
https://jsfiddle.net/mxdbun2z/1/
Chart.js/src/plugins/plugin.tooltip.js
Line 162 in a3fc841
from chart.js.
This is a bit confusing since docs say: Spacing to add to top and bottom of each title line.
Considering the title is usually a single item anyway.
It seems that I can solve my issue using padding
and titleMargin
then, thanks
from chart.js.
Hey guys, I am new in open source projects so I would like to start by contributing on a small thing like a documentation fix, like what appears to be this one. I am still studying the docs, but what needs to change is the information about how the property works, right? And if possible, I would like to try to make the contribution.
from chart.js.
Related Issues (20)
- padding for the legend
- Clip option on scale doesn't do anything
- Cannot read properties of null (reading 'getContext')
- Radial Bar Chart Label Issue HOT 3
- Y-labels cropped way too early for vertically stacked axes
- Ticks callback function don't return initial value labels HOT 2
- floating point on y axis HOT 8
- Easy API for setting background color on each dataset's tooltip
- Hovering functionality for long labels
- Angular application reacting slow once multiple chart loaded into page. HOT 1
- Title padding does not appear to be scriptable (or type needs updating?)
- Provide an API using composition DP to build graphs
- Vertical Gradient to each bar are not able to set grouped Bar chart. (Sets the createLinearGradient for the whole graph, not for individual bars). HOT 2
- Tooltip content is not hoverable
- Dynamic text resize is not supported HOT 3
- Mix multiple bar and line HOT 2
- Issue with Updating Charts -> Adding or Removing Data code example HOT 4
- Set label of piechart/donut chart using parsing
- Minor ticks support chart.js
- Line chart rendering goes haywire
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart.js.