Bubble in bubble chart should goes under X axis like an sunset.
When I have bubble chart and it has some positive bubble value with center close to X axis, part of bubble shown below X
Not sure how to implement but it would be great if nothing will go outside X axis below it. So it's like part of bubble should go below X axis and be hidden. Like an sunset.
A screenshot and/or fiddle would help
if i understand correctly, you'd like the axis drawn on top of the point? Or would you like the point to only be a half circle
half circle as an sunset
That requires changing the drawing code. I think the way to handle this would be to add some kind of arc angle parameter to the point drawing and default it to 2 * Math.PI
@Th3An1m4l Can you post a screenshot of what you are expecting?

as we have

as we need
Looks like you simply want clipping around the chart area, right?
yes )) or like this, any solution will help
Closed by mistake. Any solution suggested?
is there any ideas?
I can't get it work without bubbles run out of chart area, but extremely need it. In any case it looks like wrong behavior.
I think we need to add options to control dataset clipping instead of hard-coding this behavior and avoid a specific use case that might not fit well for everyone (as it's the case for line and bar controllers).
For now, you can write a simple plugin (jsfiddle):
var clipper = {
beforeDatasetsDraw: function(chart) {
Chart.helpers.canvas.clipArea(chart.ctx, chart.chartArea);
},
afterDatasetsDraw: function(chart) {
Chart.helpers.canvas.unclipArea(chart.ctx);
}
};
new Chart('chart', {
plugins: [clipper]
});
Awesome! Thanks. I'll try it.
Super! It works perfect! Exactly what we need.
Is there a way to prevent tooltips from appearing when the cursor is outside the chart area? The problem occurs also after zooming in on a bar chart: bars are not displayed under the ticks area, but tooltips appear anyway.
Most helpful comment
I think we need to add options to control dataset clipping instead of hard-coding this behavior and avoid a specific use case that might not fit well for everyone (as it's the case for line and bar controllers).
For now, you can write a simple plugin (jsfiddle):