GithubHelp home page GithubHelp logo

Specifing a classname to tooltip configuration and providing styles targetting such breaks SVG container sizing calculations about highcharts HOT 4 OPEN

Erbenos avatar Erbenos commented on September 24, 2024
Specifing a classname to tooltip configuration and providing styles targetting such breaks SVG container sizing calculations

from highcharts.

Comments (4)

hubertkozik avatar hubertkozik commented on September 24, 2024 1

Hi @Erbenos!

I agree, it should work exactly the same as for styling by highcharts-tooltip class. The first hovered point tooltip container has bad dimensions.

Simplified demo: https://jsfiddle.net/BlackLabel/n4xh9d0r/

As a workaround, you can style the tooltip, e.g. change the font size, by setting it in tooltip.style object, like in the demo below.

Workaround: https://jsfiddle.net/BlackLabel/03n1h2ev/
API Reference: https://api.highcharts.com/highcharts/tooltip.style

from highcharts.

Erbenos avatar Erbenos commented on September 24, 2024

Unfortunately this sort of workaround is bare minimum, since if you are at point of using CSS styles, its likely that the tooltip contents are more rich content wise (and as such you are targetting only some pieces of it) and setting one font size for the entire tooltip doesn't help much cause its not as gradual as one needs it to be.

from highcharts.

hubertkozik avatar hubertkozik commented on September 24, 2024

You can configure the tooltip headerFormat and pointFormat as you would like to achieve different font-size in tooltip.

Live demo: https://jsfiddle.net/BlackLabel/qpb390rk/

If you need help with chart configuration feel free to reach out to our other support channels, for example Highcharts forum, where our support engineers will help you with the configuration of your chart.

from highcharts.

Erbenos avatar Erbenos commented on September 24, 2024

Which I suppose are also subject to #17593 hence aren't applicable for my usecase, assuming they inherit the same troublesome behavior when attaching arbitrary classes.

from highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.