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 occasionally missing some entires #1191

Closed
darnautov opened this issue Jun 4, 2021 · 2 comments · Fixed by #1273
Closed

[Heatmap] Legend occasionally missing some entires #1191

darnautov opened this issue Jun 4, 2021 · 2 comments · Fixed by #1273
Assignees
Labels
bug Something isn't working :heatmap Heatmap/Swimlane chart related issue Impact:High :legend Legend related issue released Issue released publicly

Comments

@darnautov
Copy link
Contributor

darnautov commented Jun 4, 2021

Describe the bug
Legend occasionally missing some value ranges from the chart data.

To Reproduce
Steps to reproduce the behavior:

  1. Set the quantize color scale
  2. Pass the chart data
Data payload
[
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622152800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 84
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622239200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 79
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622325600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 88
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622412000000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 92
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622498400000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 89
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622584800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 81
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622671200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 99
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "(empty)",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622757600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 47
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622152800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 43
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622239200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 38
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622325600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 40
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622412000000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 40
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622498400000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 37
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622584800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 44
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622671200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 32
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "gz",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622757600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 27
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622152800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 31
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622239200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 38
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622325600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 37
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622412000000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 36
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622498400000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 40
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622584800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 40
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622671200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 35
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "css",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622757600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 28
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622152800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 72
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622239200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 75
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622325600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 65
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622412000000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 63
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622498400000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 63
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622584800000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 66
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622671200000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 64
    },
    {
        "e3960daf-4dd6-4bee-ad35-33531fbb50b3": "__other__",
        "afd8f801-ec04-446c-b69b-f0c4dd182bf7": 1622757600000,
        "82a12112-07d1-4f40-9d09-cc60d8d379ac": 30
    }
]

Expected behaviour
Legend reflects the entire range of presented entries.

Screenshots
image

@darnautov darnautov added bug Something isn't working :legend Legend related issue :heatmap Heatmap/Swimlane chart related issue labels Jun 4, 2021
@flash1293
Copy link

Added the chart data

@markov00 markov00 added this to To do in Heatmap Beta Jun 22, 2021
@markov00 markov00 self-assigned this Jul 27, 2021
@markov00 markov00 moved this from To do to In progress in Heatmap Beta Jul 28, 2021
Heatmap Beta automation moved this from In progress to Done Aug 16, 2021
markov00 added a commit that referenced this issue Aug 16, 2021
The heatmap legend now correctly shows all the colors and values associated with the chosen scale, without duplicates and with all the available color bands computed.

fix #1166, fix #1191, fix #1192
nickofthyme pushed a commit that referenced this issue Aug 16, 2021
## [33.2.3](v33.2.2...v33.2.3) (2021-08-16)

### Bug Fixes

* **heatmap:** compute nice legend items from color scale  ([#1273](#1273)) ([0d392ae](0d392ae)), closes [#1166](#1166) [#1191](#1191) [#1192](#1192)
@nickofthyme
Copy link
Collaborator

🎉 This issue has been resolved in version 33.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working :heatmap Heatmap/Swimlane chart related issue Impact:High :legend Legend related issue released Issue released publicly
Projects
No open projects
Heatmap Beta
  
Done
Development

Successfully merging a pull request may close this issue.

4 participants