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

Support for color assignment in stacked area charts #74

Open
plallin opened this issue Sep 21, 2021 · 0 comments
Open

Support for color assignment in stacked area charts #74

plallin opened this issue Sep 21, 2021 · 0 comments

Comments

@plallin
Copy link

plallin commented Sep 21, 2021

In Wavefront, it is possible to assign specific colors to a stacked area chart using the sourceColor parameter within sources. Example:

"sources": [
                {
                  "name": "Healthy",
                  "query": "...",
                  "queryType": "WQL",
                  "disabled": false,
                  "secondaryAxis": false,
                  "querybuilderEnabled": false,
                  "sourceDescription": "",
                  "sourceColor": "rgba(103,202,22,1)"
                },
                {
                  "name": "Unhealthy",
                  "query": "....",
                  "queryType": "WQL",
                  "disabled": false,
                  "secondaryAxis": false,
                  "querybuilderEnabled": false,
                  "sourceDescription": "",
                  "sourceColor": "rgba(255,129,107,1)"
                }

This produce a chart like this:

Screenshot 2021-09-21 at 13 56 46

For viewer, it is easy to understand that red = unhealthy and green = passed healthy.\

This parameter is not yet available with the Wavefront terraform provider. This default to the following chart:

Screenshot 2021-09-21 at 13 53 37

The color scheme here is ambiguous to viewers and doesn't make it clear what the healthy / unhealthy ratio is. User needs to hover the chart in order to learn that information.

The proposal to is to introduce a new parameter source_color as part of the source object in order to make it possible for dashboard maintainer to assign specific colors to their stacked area chart instead of relying on defaulted colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant