Is it possible to colorize map clusters?

Dillon Hoefener shared this question 4 years ago
Answered

Is it possible to colorize the cluster points displayed on map charts based on metric data the way you can with individual data points?


The use case is to be able to look at a map at a high level to see which regional areas are underperforming on a given metric and then zoom in on that area to see which individual data points are contributing to the underperformance for the area.


For example, in the attached screenshot, if the area with 329 points is underperforming collectively it should show as red but if it is performing well it should be green.

Replies (5)

photo
1

Hi Dillon,

Thanks for reaching out with this.

Looking into our documentation and attempting to test this I was unable to find a way to this within Yellowfin.

There are ways to manipulate the clusters with the Google API: https://developers.google.com/maps/documentation/javascript/marker-clustering

This may as well be something that we can change with a CSS page, however Having the color change based on the value of the ping, may be more difficult to accomplish without the API.

Are you and your team using a Google API Key in this enviornment?

Best,

Jared

photo
1

Hi Jared,

We are using an API key in our environment. Are you saying this would require a custom JavaScript chart to do this then or am I misunderstanding?

Thanks

photo
1

Hi Dillon,

I believe this is the case.

After discussing this with one of our consultants they had pointed me to the Google Maps documentation in order to achieve this behavior with the Google GIS map. If we simply wanted to recolor the clusters we would be able to do this with a custom CSS call pointing to the map element, however we wouldn't be able to format the color depending on the underlying data.

Let me know if you have any questions regarding this.

Best,

Jared

photo
1

Hi Dillon,

Hope your holiday season went well.

I wanted to reach out to see if you were able to configure your Google API to manage the customization of the Clusters. Currently I am unaware of an alternative method to apply custom behavior to the clusters.

If you have any questions or need anything from our end, let us know.

Best,

Jared

photo
1

Hi Dillon,


I hope things are going well over there.


Just wanted to let you know I'll be marking this question as answered. However, if you ever wanted to re-visit this or have anything else I can help you with, please let me know.


Regards,

Jared

Leave a Comment
 
Attach a file