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

X-axis and color change #43

Open
Hamsavani-J opened this issue May 5, 2023 · 1 comment
Open

X-axis and color change #43

Hamsavani-J opened this issue May 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@Hamsavani-J
Copy link

Hi,

Is there any way to change the color as per the requirement,
for example:
My Requirement is

  1. I want the color to be green in the bar chart when the value is less than 1.25
  2. I want the color to be orange in the bar chart when the value is 1.25 to 2.5
  3. I want the color to be Red in the bar chart when the value is 2.5 to 3.75
  4. I want the color to be black in the bar chart when the value is 3.75 to 5

Is this possible, If possible please let me know.

then I also want to Define the x-axis value in the bar chart, can I define it with my own values, Just started to use your chart work. If there is any example for this please link it here.

I'm a beginner, If anything I have asked is wrong, I'm sorry.

@erossini erossini self-assigned this May 8, 2023
@erossini erossini added enhancement New feature or request question Further information is requested labels May 8, 2023
@erossini
Copy link
Owner

erossini commented May 8, 2023

You can use lambda expression to change the colors in a bar chart. The second part I think it is not possible. If you have an example in JavaScript, I can add more properies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants