2021年4月27日星期二

pygal.worldmap Countries with not associated code & Not enable Change the Font size

I am using pygal for create WorldMap from one Column at my CSV File.

This the html page that i Display :

My current worldmap

First Problem:

I can not display the next value of the countries that I get from the csv file and display it on the map :

Unkown:108, Europe:3, Asia-Pacific:2, Samoa:1.

For the value :Asia-Pacific and Samoa not have code ID

Second Problem:

Because the first problem, I try to display at left side of the html page all the countries that not display on the map

But when I write this row :

worldmap.add("---Countries that dont display on the map-----:", [{'label': 'Countries that dont display on the map....'}])  

The size of the text is large, how can I reduce it ?

countries that not display on the map

https://stackoverflow.com/questions/67294068/pygal-worldmap-countries-with-not-associated-code-not-enable-change-the-font-s April 28, 2021 at 01:07PM

没有评论:

发表评论