idescat / visual

Visual is a Javascript library for data visualization developed by the Statistical Institute of Catalonia (Idescat). It is based on popular open source solutions. Visual offers a simple interface that encapsulates the complexity of these solutions for the most common chart types.
https://www.idescat.cat/dev/visual/?lang=en
Other
62 stars 14 forks source link

Zoomable maps #10

Open martgnz opened 9 years ago

martgnz commented 9 years ago

It would be awesome to have this integrated, specially when working with municipalities.

badosa commented 9 years ago

Is zooming useful in a plain choropleth map? What's the real benefit of having a better view of the municipality region? Easing the comparison with the neighbor municipalities? Better exposing the disseminated areas of the municipality? The answer is relevant to decide the zoom level.

I see this feature in connection with issue #9: you click on a municipality, the region is zoomed (and the border emphasized) and a chart beside the map is updated with data for the selected municipality.

I also think that in some cases, such functionality can be annoying, so it shouldn't be turned on by default.

Probably Visual could accept a special property for maps (zoom, for example) with a default value of false.

martgnz commented 9 years ago

I opened this issue mainly because I created a new map class with Spain's municipalities. It's a huge map and it's much easier to look at the data and compare between neighbors if you have zoom implemented (at least for me).

Yes, it seems clearly connected with #9. With this feature it would be easier to replicate Tableau dashboard functionality with open standards. For example, a search input. You search for a municipality and it becomes zoomed or highlighted. And yes, I think it should be better if it's not enabled per default.

martgnz commented 9 years ago

The zoom could be controlled with the mouse so the user can navigate freely over the map. Maybe someone is interested in watching the differences in a specific region, for example in an autonomous community instead of neighbors municipalities.

But we don't need to delete the support for click & zoom. The example I provided before has both features implemented.