pir8radio
Posts: 4
Joined: Fri Jan 14, 2022 8:33 pm

I need help... Google to Hichcharts

Fri Jan 14, 2022 8:39 pm

Hi, need a hand.. i feed google geo charts an array with my country/count.. i want to directly replace this map with a highcharts map... My goal is to make it look like this one: https://www.highcharts.com/demo/maps/map-bubble here is my current production map: https://explorer.notallmine.net/peers-charts/ here is my code with my server side variables: https://github.com/pir8radio/signum-exp ... harts.html

here is my array country, quantity:

Code: Select all

     
      var data = google.visualization.arrayToDataTable([
        ['Country', 'Peers'],
        {% for country in countries %}['{{ country.country_code }}', {{ country.cnt }}],{% endfor %}
      ]);


can someone help me out with a direct replacement example code? thanks in advance.

pir8radio
Posts: 4
Joined: Fri Jan 14, 2022 8:33 pm

Re: I need help... Google to Hichcharts

Sun Jan 16, 2022 6:09 pm

must not be possible.. guess ill stick with google.

magdalena
Posts: 309
Joined: Tue Aug 24, 2021 1:32 pm

Re: I need help... Google to Hichcharts

Mon Jan 17, 2022 11:37 am

Hi pir8radio,

Welcome to our forum and thanks for contacting us with your question!

I'm not sure where are you get data from, but all you need to do is to provide them and configure the chart as you want. The following example demo shows using your data format with Map bubble series. For more information check the links below.

Demo:
https://jsfiddle.net/BlackLabel/z6j82obv/

Docs:
https://www.highcharts.com/docs/maps/map-collection
https://www.highcharts.com/docs/working ... data-intro

​If you have further inquiries, you may reach out to me at any time,
Regards!
Magdalena Gut
Highcharts support engineer

pir8radio
Posts: 4
Joined: Fri Jan 14, 2022 8:33 pm

Re: I need help... Google to Hichcharts

Thu Jan 20, 2022 4:37 am

wow... i am a moron... that was super easy... lol... glad you are here to help!!! thank you!

pir8radio
Posts: 4
Joined: Fri Jan 14, 2022 8:33 pm

Re: I need help... Google to Hichcharts

Thu Jan 20, 2022 2:48 pm

i sent you a PM if you could assist with one more little conversion then i think i will have a good grasp on what you are doing with the array.. :-) Please

Return to “Highcharts Maps”