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

Multi-series color support for stroke in bar charts #4360

Closed
Digvijayrao-KF opened this issue Mar 25, 2024 · 1 comment
Closed

Multi-series color support for stroke in bar charts #4360

Digvijayrao-KF opened this issue Mar 25, 2024 · 1 comment
Labels
feature-request New feature or request

Comments

@Digvijayrao-KF
Copy link
Contributor

Summary

Multi-series color support for stroke in bar charts

Intended Use Case

Similar to a functional support provided for colors (ref: link) need to utilize the same for applying stroke colors via a function.

Requirement:

For 2nd series, I need to apply border colors to the paths/bar based on values driven on y-axis
image

Usage:

Have been trying this code for the same. (seriesIndex & value is required to apply the logic)

stroke: {
    show: true,
    width: 2,
    colors: [
      function ({ value, seriesIndex, w }) {
        if (seriesIndex == 1) value < 3.6 ? "#54A0FF" : "#FFC759";
      },
    ],
    dashArray: 0,
 } 

Package versions used

"apexcharts": "3.45.2",
"react-apexcharts": "^1.4.1",
"react": "^17.0.2",

Discussions:

Older ref-2813

@junedchhipa
Copy link
Contributor

fixed with #4374

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

No branches or pull requests

2 participants