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

No option for chartcolor on mousehover #486

Closed
Lars-Sommer opened this issue Apr 8, 2019 · 10 comments
Closed

No option for chartcolor on mousehover #486

Lars-Sommer opened this issue Apr 8, 2019 · 10 comments

Comments

@Lars-Sommer
Copy link

When you hover a chart, donut chart for an example, the color on the current highlighted data fades out. Its like the transparency of the color sets to around 50%.

I would really like to alter this behaviour. Either remove the effect, or just change the color.
As far as I can see, this currently isn´t an option?

@junedchhipa
Copy link
Contributor

junedchhipa commented Apr 8, 2019

states: {
  hover: {
   filter: {
      type: 'none'
    }
  }
}

Enable/disable hover and selected states - https://apexcharts.com/docs/options/states/

As for your other question to change the hover color, currently, that's not possible.

@Lars-Sommer
Copy link
Author

Oh in the states object..
Thanks alot, and thanks for the great chart!

@DharmarajPS
Copy link

I found a workaround for this using CSS. Please correct if I am wrong.

.apexcharts-bar-area[filter^="url(#SvgjsFilter"]{
fill: red;
}

@Elaniobro
Copy link

@DharmarajPS interesting. This works just fine for me without all the added specificity

.apexcharts-bar-area:hover {
  fill: #FF0099;
}

@JenniferTactill
Copy link

@DharmarajPS interesting. This works just fine for me without all the added specificity

.apexcharts-bar-area:hover {
  fill: #FF0099;
}

How do you override the css ?

@DharmarajPS
Copy link

@JenniferTactill

You can override the css by using "!important".

Example:

.apexcharts-bar-area:hover { fill: #FF0099 !important; }

@JenniferTactill
Copy link

@JenniferTactill

You can override the css by using "!important".

Example:

.apexcharts-bar-area:hover { fill: #FF0099 !important; }

That is not my question. I'm asking how do we override the css of this typical file.
Where do I write this style ?
How do I tell apexchart component to take this css file ?

@DharmarajPS
Copy link

@JenniferTactill
You can override the css by using "!important".
Example:
.apexcharts-bar-area:hover { fill: #FF0099 !important; }

That is not my question. I'm asking how do we override the css of this typical file.
Where do I write this style ?
How do I tell apexchart component to take this css file ?

Each Vue component will be having <style></style> tags(scoped/universal). You can specify in universal css

@JenniferTactill
Copy link

@JenniferTactill
You can override the css by using "!important".
Example:
.apexcharts-bar-area:hover { fill: #FF0099 !important; }

That is not my question. I'm asking how do we override the css of this typical file.
Where do I write this style ?
How do I tell apexchart component to take this css file ?

Each Vue component will be having <style></style> tags(scoped/universal). You can specify in universal css

Thank you

@sacalata
Copy link

@JenniferTactill

You can override the css by using "!important".

Example:

.apexcharts-bar-area:hover { fill: #FF0099 !important; }

Thank you, is there any alternative for when clicking the bar?, I want to change the bar's style when it is selected.

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

6 participants