Giter Club home page Giter Club logo

Comments (7)

hcpchris avatar hcpchris commented on June 2, 2024 1

Okay, good news - I've been able to isolate the issue that is causing the chart not to render. It is caused by a bug in the serialization of the tooltip.format option, though why this would be serializing strangely (and more specifically, serializing strangely if it's in use within a pie series) I do not yet know. I'm going to track down what the root cause of this bug is, but I can definitely confirm that to be the proximal issue preventing the chart from rendering. Hopefully, I'll have this fixed + patched soon.

from highcharts-core.

ndrwkim avatar ndrwkim commented on June 2, 2024 1

I sent an email with the details you've requested.

from highcharts-core.

hcpchris avatar hcpchris commented on June 2, 2024 1

I've been able to resolve the issue. It turned out to not be related to PieSeries at all, but instead an edge case when serializing strings. Specifically, if careful validation were disabled (the default, introduced in v.1.4 for performance improvements) and a string value started with {, ended with }, and contained a colon : it was getting improperly identified as a JS literal object when serializing. As a result, your tooltip.format string was getting serialized incorrectly to a JS literal string, preventing the chart from loading.

I'll be pushing out a patch release shortly (once the CI/CD pipelines run). Once the new version (v.1.5.1) is deployed, this issue will get auto-closed (I'll also comment here to double-confirm, in any case).

from highcharts-core.

hcpchris avatar hcpchris commented on June 2, 2024 1

And just confirming that the fix for this has been released in v.1.5.1. Hopefully this resolves the issue for you, but if it does not feel free to re-open. And if you run into any other issues, please feel free to log an issue here. Thanks again!

from highcharts-core.

ndrwkim avatar ndrwkim commented on June 2, 2024 1

It works! Thanks so much @hcpchris! Have a great weekend.

from highcharts-core.

hcpchris avatar hcpchris commented on June 2, 2024

Thanks, @ndrwkim ! I don't recall there being any changes to PieSeries introduced, let alone ones that might affect this, but I may be misremembering. Let me take a closer / deeper look, and thanks for sharing the DOM output: That will definitely help me recreate the issue and track down what may be preventing the chart from rendering correctly. I'll hopefully have more info and a resolution on this issue today.

from highcharts-core.

hcpchris avatar hcpchris commented on June 2, 2024

Hi @ndrwkim : When you have a moment, can you share:

  1. The code snippet or JS template that you're using to configure your tooltip (or specifically your tooltip.format) option, and
  2. The method call (presumably .to_js_literal()) that you are using to serialize your chart to JS?

I'm having difficulty regenerating the DOM output that you provided with the incorrectly-serialized tooltip.format so seeing how you exactly you are setting that option will help me to create a test case for it and track down the exact bug.

from highcharts-core.

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.