- Home
- Forum
- JavaScript - EJ 2
- Label changes when coloured
Label changes when coloured
shapePropertyPath: 'name',
shapeDataPath: 'name',
colorValuePath: 'value',
colorMapping: [
{
from: 0, to: 0, color: ['gray', 'green', 'blue', 'yellow', 'red'],
},
],
},
{ "type": "Feature", "properties": { "countryCode": "AO", "admin": "Angola", "name": "Angola",
shapePropertyPath: 'countryCode',
shapeDataPath: 'countryCode',
Hi Daniel,
Thank you for contacting Syncfusion support.
When we set the shapeData and dataSource properties in the Maps component for rendering shape map and data labels are enabled, the value which matches the fields in the shapeData and the dataSource property will be visible on the map. Similarly, when we set the “countryCode” in the shapeDataPath and shapePropertyPath properties, the value that matches will be rendered. We are unable to reproduce the reported issue when we change the valuePath of dataLabelSettingsdynamically. However, we have created a simple JavaScript application to demonstrate the same and it can be downloaded from the below link.
https://www.syncfusion.com/downloads/support/forum/163539/ze/Map-171860724
In the above sample, we have rendered a world map with a button. When we click on the button, the shapeDataPath, shapePropertyPath and valuePath of dataLabelSettings will be changed. The labels are rendered fine. Please modify the above sample to reproduce the reported issue. It will be helpful for us to analyze further and assist you better.
Regards,
Swetha Babu
Sorry for the inconvenience caused.
We have not included the fix for the reported issue in our weekly NuGet release due to some technical issues. However, we will include the fix in our next weekly NuGet release which is expected to be available by the mid of April 2021.
Regards,
Swetha Babu
Most Welcome! We will let you know once the fix is available in our weekly NuGet release.
Please let us know if you need any further assistance.
Regards,
Swetha Babu
Thank you for your patience
We have included the fix for the reported issue "Label changes when colored" in our weekly patch release(v19.1.56). Please update the package to the latest version to resolve the reported issue.
Please let us know if you need any further assistance.
Regards,
Swetha Babu
- 14 Replies
- 3 Participants
- Marked answer
-
DA Daniel
- Mar 15, 2021 05:55 PM UTC
- Apr 19, 2021 10:07 AM UTC