Git Product home page Git Product logo

Comments (6)

dylancis avatar dylancis commented on May 29, 2024 2

I digged a bit more and found that the download_map_data() would need a fix:
The JSON string parsed in:

mapdata <- jsonlite::fromJSON(mapdata, simplifyVector = FALSE)

Contains Highcharts.maps[\"countries/pt/pt-all\"]= at the beginning and I believe this is causing the corrupted JSON.

The line here:
https://github.com/jbkunst/highcharter/blob/b53834c3b7e71e03741cd68b1c3595e75b0e79ef/R/highmaps.R#L188C20-L188C20
Needs to be changed with:

mapdata[1] <- gsub(".*]=", "", mapdata[1])

I tested and it works but a PR would be required.

from highcharter.

rmcarder avatar rmcarder commented on May 29, 2024 1

Also experiencing this which is causing a few scheduled reports to fail. Thank you @dylancis for the solution. Hoping pull request can be approved soon. Thanks @jbkunst for the amazing package!

from highcharter.

dylancis avatar dylancis commented on May 29, 2024

I got the same today, this is super new, I have been 0.9.4 version pretty much daily for very long time and never faced that issue before. Must be something on the underlying js lib.

https://code.highcharts.com/mapdata/countries/gb/gb-all.js

This is not A valid JSON.

from highcharter.

sbal0038 avatar sbal0038 commented on May 29, 2024

I have also been facing the same issue for more than 6 hours. The code was working well in the morning but was giving same lexical error from today evening for all kinds of maps provided by highcharts.

from highcharter.

dylancis avatar dylancis commented on May 29, 2024

#798

from highcharter.

dylancis avatar dylancis commented on May 29, 2024

Highchart went back with the earlier .js version, the issue is gone and no code change is required.

from highcharter.

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.