Simon Brunel

Results 80 comments of Simon Brunel

@oxygen isn't #98 the same issue? what do you think about the `clamp` option, would it fix this case as well?

@rscottfree `clamp` doesn't guarantee that the label will not overlap the axis but [ensure that the anchor point is inside the chart area](https://chartjs-plugin-datalabels.netlify.com/guide/positioning.html#clamping). Depending on your use case, you can...

@rajkumar-osm No, this feature is not implemented. Please use this project (chartjs-plugin-datalabels) to request features or submit bugs about data labels.

Can you create a jsfiddle with what you have so far and post a screenshot of what you are trying to achieve?

A [jsfiddle](https://jsfiddle.net/simonbrunel/mo5y35yg/) **greatly** helps us to experiment or debug *your code* and save us lot of time trying to figure out what's going on. `Test.txt` is almost useless since it...

Thanks for the fiddle, I understand what you are trying to achieve but unfortunately there is no easy/clean way to implement that use case. First, you are facing the [following...

Sure but I'm not sure what feature needs to be implemented and how?

It's not possible because the label effective bounding box is computed after all the options are fully evaluated. The threshold approach is not so bad: simple, efficient, predictable and works...

> Is there a particular reason why this calculation is deferred? Yes. As you said, many options impact the bounding box (font, padding, etc.) and it would be a waste...

> wouldn't it be possible to compute the final dimensions ahead of time ... No, because how would you resolve the following case: ```javascript datalabels: { padding: function(context) { //...