Skip to content

geom_path: tooltips on a livemap feels more organically than on a regular plot  #855

@IKupriyanov-HORIS

Description

@IKupriyanov-HORIS

geom_path tooltips are more predictable on a livemap as they work the same way like tooltips for a geom_polygon layer.

See The Minard Map:
With livemap: link
With regular plot: link

Code:

import pandas as pd
from lets_plot import *

LetsPlot.setup_html()

minard_df = pd.read_csv('https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/minard/troops.csv')
minard_plot = geom_path(aes(x='long', y='lat', size='survivors', group='group', color='direction'), data=minard) \
    + scale_size([1.0, 20.0]) \
    + scale_color_manual(["#E1CBAE", "#232021"]) \
    + coord_map() \
    + flavor_solarized_light() \
    + guides(color = "none")


livemap = ggplot() \
    + geom_livemap() \
    + minard_plot

regular = ggplot() \
    + minard_plot

gggrid([livemap, regular]) + ggsize(1200, 400)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions