BetoDev Report post Posted March 25, 2020 Hi, i followed this link to change IDs, but the way i'm doing is not working. I have the following example: var chart1 = "{" + "'chart':{" + "'showlegend':'0'," + "'caption':'Ejemplo'," + "'nullentityfillcolor':'#43ccfe'," + "'showmarkerlabels':'0'," + "'showentityhovereffect':'1'," + "'theme':'fusion'" + "}, 'entityDef' : [ {'internalId': '05', 'newId' : '01'}, {'internalId': '80', 'newId' : '16'}]," + "'data':[" + "{" + "'id':'05',"+ "'value': '16'," + "'color' : '#004d80'" + "}" + "]" + "}"; If you see, i want to change the 05 Id to 01 (is just a example) So Canada (id = 05) would be id = 01. So is this possible? Because i don't have results. I want to know if there is a possibility to do something like that, because in a future i want to retrieve my own id from my database to set newId (with number). Hope you can help me to achieve this. Thanks in advance Share this post Link to post Share on other sites
Akash Biswas Report post Posted March 25, 2020 Hi, It is possible to define custom ID for the entities, and then use them in the data objects to provide values to the map dataSource. You can check the below sample for reference : https://codepen.io/Akash008/pen/VwYgzOP?editors=1010 For further reference, you can check the documentation link for the details : https://www.fusioncharts.com/dev/map-guide/custom-entity-ids Thanks, Akash. Share this post Link to post Share on other sites
BetoDev Report post Posted March 25, 2020 5 hours ago, Akash Biswas said: Hi, It is possible to define custom ID for the entities, and then use them in the data objects to provide values to the map dataSource. You can check the below sample for reference : https://codepen.io/Akash008/pen/VwYgzOP?editors=1010 For further reference, you can check the documentation link for the details : https://www.fusioncharts.com/dev/map-guide/custom-entity-ids Thanks, Akash. Oops, i forgot to paste the link, that link https://www.fusioncharts.com/dev/map-guide/custom-entity-ids was the guide, but i can not change id's to another integer id's. As i wrote, my intention is change id 05 (Canada) to id = 16 (just a example). Because i want to use only integer id's and i want to "interchange" the id's because from my database i have countries but are different id's. That's the reason i want to do that, there is a option to do this? Share this post Link to post Share on other sites
Akash Biswas Report post Posted March 26, 2020 Hi, It will not be possible to set id 05 (Canada) to id 16, as the id 16 is already present in the default set of id predefined for the map type. You can set new custom ID to the entities which is not present in the predefined list of ID for that map type. Please note : Only unique ID are accepted as new custom ID which are not present in the predefined list to avoid conflicts. Refer to the below sample : https://codepen.io/Akash008/pen/VwYgzOP?editors=0010 Thanks, Akash. Share this post Link to post Share on other sites
BetoDev Report post Posted March 26, 2020 Thanks, that's better Share this post Link to post Share on other sites
Akash Biswas Report post Posted March 26, 2020 Thanks for the acknowledgement. Share this post Link to post Share on other sites