Skip to content

How to use colorscale? #31

Description

@Nemecsek

Hi. Great library!

I need a clarification on how to use colorscale.
I have some data that I would like to color according to their value, not based on % of max as in the example.

In Medium's article you write "But of course, you may want to create your own color scale, there are several ways to create one, my favorite is actually to use a percentage of max values".
Are they described somewhere?

I would like to assign colors according the absolute value, not the % of max value:
i.e. red if below 5; yellow if below 10; white between 10 and 20; black if bigger than 20.
Absolute colors, no shading.

Is this possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions