Skip to content

Color-bar/App #1314

@MatteoSerafino

Description

@MatteoSerafino

I'm having two different issues with folium. The first one is that I'm using color map in the following way:

    linear = cm.LinearColormap(
    ['#172E74', '#05F90B','#427024', '#F2D60E','#F90000'],
    index=[5,24,36,48,60],
    vmin=5, vmax=60)
    linear.caption = 'Time'
    m.add_child(linear)
    linear_real =   cm.StepColormap(
    ['#F9FB97','#F6F904', '#F1DB0B', '#F8524A'],
    index=[1,50,200,400],
    vmin=1, vmax=500)
    linear_real.caption = 'Cases'
    m.add_child(linear_real)

However in order to change the properties of them, such as position, font-size I have to do it manually from the HTML. Is there an automatic way to do it?

The second problem is that, if I Try to put the HTML on a personal page, then the timeslider bar
reduce or disappear as you can see here:

Time_slider

I'm really tried to fix it, but I could not find a solution, even though the problem may be stupid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThe issue is a duplicate of a previous issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions