amcharts4 icon indicating copy to clipboard operation
amcharts4 copied to clipboard

How to set boundingContainer for axis label tooltip

Open Jagan-P opened this issue 2 years ago • 2 comments

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))

image

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.

Link to JSFiddle

Environment (if applicable)

Additional context

Jagan-P avatar Mar 25 '22 08:03 Jagan-P

@martynasma could you please help me here?

Jagan-P avatar Mar 28 '22 06:03 Jagan-P

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.

github-actions[bot] avatar Aug 09 '22 00:08 github-actions[bot]