Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap legend colors broken in 3.51.0 #4579

Closed
johuhype opened this issue Jul 22, 2024 · 1 comment · Fixed by Plant-for-the-Planet-org/planet-webapp#2243 · 4 remaining pull requests
Closed

Heatmap legend colors broken in 3.51.0 #4579

johuhype opened this issue Jul 22, 2024 · 1 comment · Fixed by Plant-for-the-Planet-org/planet-webapp#2243 · 4 remaining pull requests
Labels
bug Something isn't working

Comments

@johuhype
Copy link

johuhype commented Jul 22, 2024

Description

The legend colors always seem to default to the same colors in 3.51.0.

plotOptions: {
                heatmap: {
                    colorScale: {
                        ranges: [
                            {
                                name: 'niedrig',
                                from: 0,
                                to: (maxAvg.value * 1 / 3),
                                color: '#00FF00' //colorAvgColumn
                            },
                            {
                                name: 'mittel',
                                from: (maxAvg.value * 1 / 3),
                                to: (maxAvg.value * 2 / 3),
                                color: '#FF0000' //colorHeatMapMiddle
                            },
                            {
                                from: (maxAvg.value * 2 / 3),
                                name: 'hoch',
                                to: maxAvg.value,
                                color: '#0000FF' //colorHeatMapHigh
                            }
                        ]
                    }
                }
            },

is leading to

image

Expected Behavior

Use the colors provided in colorScale

Actual Behavior

Uses always the same unrelated colors

@johuhype johuhype added the bug Something isn't working label Jul 22, 2024
@brianlagunas
Copy link
Member

Required reproduction link not provided. Closing until a reproduction has been supplied.

@brianlagunas brianlagunas closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
@junedchhipa junedchhipa reopened this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment