• Hi amCharts team,
    Is there any efficient method of zooming to a series other than computing its extreme coordinates? I’m thinking about something similar to the zoomToGroup() method in v.3; zoomToMapObject() doesn’t seem to apply to series in v.4.
    Basically what I’m trying to achieve is this:
    1. start with world map
    2. countries are grouped in series (continents) which might have various properties set and events attached
    3. upon clicking on a country the map zooms to the series it belongs to (not to the country!)
    4. from here either work with the zoomed series on or replace the geodata
    Item 3 is the one I have trouble with.
    Thanks a lot!

Viewing 1 replies (of 1 total)
  • Thread Starter gbutnaru

    (@gbutnaru)

    Hi back,

    found the answer myself in the meantime ?? and I’ll post it here just in case someone else needs it: use the north/east/south/west properties of the ev.target and zoom to the area defined by those points by using zoomToRectangle.

    cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘zoom to series’ is closed to new replies.