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

Tooltips not working properly for line chart #17

Open
sibidharan opened this issue Aug 4, 2022 · 2 comments
Open

Tooltips not working properly for line chart #17

sibidharan opened this issue Aug 4, 2022 · 2 comments

Comments

@sibidharan
Copy link

On line charts, it works very well.

Screenshot 2022-08-04 at 6 17 30 AM

On bar charts, the color is not being displayed in the tooltip.
Screenshot 2022-08-04 at 6 18 23 AM

Is there any way to fix this?

@sibidharan
Copy link
Author

@mrholek any fix for this?

@xidedix
Copy link
Member

xidedix commented Nov 9, 2022

@sibidharan you should pass pointBackgroundColor in your dataset for CChartLine like:

<CChartLine
  ...
  data={{
    ....
    datasets: [
      {
        backgroundColor: 'transparent',
        borderColor: '#321fdb',
        borderWidth: 2,
        data: [41, 78, 51, 66, 74, 42, 89, 97, 87, 84, 78, 88, 67, 45, 47],
        pointBackgroundColor: '#321fdb'
      },
    ],
  }}
...

image

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

2 participants