amcharts4
amcharts4 copied to clipboard
How to set boundingContainer for axis label tooltip
Question
I am trying to add tooltips to axis labels. However the position of the tooltip is a problem again.
Previously on adding tooltip to axis title, the pointerOrientation
was really not needed with a simple hack.
"callback": function() {
this.boundingContainer = this.topParent.tooltipContainer;
}
I am trying to achieve the same for axis label tooltips, but they don't seem to have any topParent
. Am not able to see the dom
or text
property in callback
function of tooltip
(basically using console.log(this)
)
Is this really possible or is there any other way to specify proper orientiation or tooltip position for axis labels (a suitable boundingContainer
will be really helpful like this)
And the same issue on y-axis too.
Environment (if applicable)
Additional context
@martynasma could you please help me here?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.