Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide the tooltip shown for xAxis title #4384

Closed
nikitha-keyvalue opened this issue Feb 13, 2024 · 2 comments
Closed

How to hide the tooltip shown for xAxis title #4384

nikitha-keyvalue opened this issue Feb 13, 2024 · 2 comments

Comments

@nikitha-keyvalue
Copy link

I wish to hide the tooltip that is shown for xAxis title but still be able to show the same for when the user hovers over the axis labels and datapoints.

Initially the behavior was that every time i hover over the axis title the previously hovered data point/ label's value is shown as the title's tooltip. I later changed my tooltipText value to empty string which seemed to be working. But now every time one of the data points is 0 either no tooltip is shown or is shown over the next data point.

This is my xAxes config for reference:

[
    {
        "id": "c1",
        "type": "CategoryAxis",
        "title": {
            "text": "am"
        },
        "renderer": {
            "line": {
                "isMeasured": false
            },
            "grid": {
                "template": {
                    "disabled": true
                }
            },
            "labels": {
                "template": {
                    "rotation": -45,
                    "horizontalCenter": "right",
                    "verticalCenter": "middle",
                    "truncate": true,
                    "maxWidth": 300,
                    "dy": -10,
                    "adapter": [
                        {
                            "key": "text"
                        }
                    ]
                }
            },
            "minGridDistance": 20
        },
        "tooltipText": "",
        "dataFields": {
            "category": "am"
        },
        "cursorTooltipEnabled": true
    }
]
@martynasma
Copy link
Collaborator

amCharts 4 support has reached end-of-life Dec 31, 2023.

If you still have support subscription, try contacting amCharts support directly: contact@amcharts.com

Otherwise, you might try posting your questions on StackOverflow.

I hope that sounds reasonable.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants