Hi,
I am attempting to select all shapes in order to apply a new color to all of them.
I started off with the kendo geojson demo for the map where a color is applied to every country (shape) when created using the shapeCreated event.
shapeCreated= function(e){
var shape = e.shape;
var users = shape.dataItem.properties.users;
var scale = chroma.scale(["white", "green"]).domain([1, 1000]);
if (users) {
var color = scale(users).hex();
shape.options.fill.set("color", color);
}
}
but I don't find a way to now change this once the shape is created.How do I loop through the shapes and apply a new color?
Also, the normal charts have .redraw() and refresh() methods, the map doesn't seem to have something like this? How do I refresh the map when something fundamental changes?
Thanks in advance,
Arno