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

ApexCharts: fillColor property for one column not work in the Chart with mixed series: column and candlestick #3201

Open
pvoytko opened this issue Jun 9, 2022 · 0 comments · May be fixed by #4804
Labels
bug Something isn't working

Comments

@pvoytko
Copy link

pvoytko commented Jun 9, 2022

Description

ApexCharts: fillColor property for one column not work in the Chart with mixed series: column and candlestick

Actual Behavior

first column is "green" (default)

Screenshot with result

Expected Behavior

first column must be "blue"

Because:

"fillColor" property with "blue" color present in code here:

Screenshot because

From docs, it must work:

https://apexcharts.com/docs/chart-types/column-chart/

Screenshot from docs

Reproduction Link

On codepen:
https://codepen.io/pvoytko/pen/jOZevgN

OR standalone HTML file:
"bug_test.html", save and open it:
https://drive.google.com/uc?id=1zgMm7dlRvrgzyHq-8C34uEgTwAmViDwL

      var options = {
          series: [
              {
                name: 'candleSeries',
                type: 'candlestick',
                data: [
                    {x: "x 165", y: [28000, 27500, 30500, 29000]},
                    {x: "x 200", y: [29500, 27500, 30500, 28500]},
                    {x: "x 220", y: [29000, 28000, 31500, 30000]}
                ]
              },
              {
                name: 'columnSeries',
                type: 'column',
                data: [
                    {x: "x 165", y: 200, fillColor: "#0000FF"},   // <<<< ===== BUG HERE !!!
                    {x: "x 200", y: 300},
                    {x: "x 220", y: 400}
                ]
              },
          ]
               ...

P.S.

If remove "candstick" series and "candlstick" yaxis from test code, all work fine as expected
(and I change "fillColor" with red color, because blue is default in this case).
Good screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant