question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calendar: Broken tooltips from version 0.65.0 on

See original GitHub issue

Describe/explain the bug

When I copy the sample code for the ResponsiveCalendar from the webpage verbatim I can’t get tooltips to work on the newest version. After much trying, I downgraded and found out that the last version I can get the tooltips to work is 0.64.0.

Is there a new way of using tooltips that is not documented yet, or a bug?

To Reproduce

From the web page:

const data =
[
  {
    "day": "2018-02-09",
    "value": 6
  },
  {
    "day": "2014-03-03",
    "value": 321
  },
  {
    "day": "2013-06-01",
    "value": 330
  },
  {
    "day": "2018-09-16",
    "value": 177
  },
  {
    "day": "2016-06-08",
    "value": 48
  },
  {
    "day": "2016-12-14",
    "value": 30
  },
  {
    "day": "2014-06-11",
    "value": 123
  }]

const MyResponsiveCalendarCanvas = () => (
    <ResponsiveCalendarCanvas
        data={data}
        from="2013-03-01"
        to="2019-07-12"
        emptyColor="#aa7942"
        colors={[ '#61cdbb', '#97e3d5', '#e8c1a0', '#f47560' ]}
        margin={{ top: 40, right: 40, bottom: 50, left: 40 }}
        direction="vertical"
        monthBorderColor="#ffffff"
        dayBorderWidth={0}
        dayBorderColor="#ffffff"
        legends={[
            {
                anchor: 'bottom-right',
                direction: 'row',
                translateY: 36,
                itemCount: 4,
                itemWidth: 42,
                itemHeight: 36,
                itemsSpacing: 14,
                itemDirection: 'right-to-left'
            }
        ]}
    />
)

Steps to reproduce the behavior:

  1. Hover over a colored field

Expected behavior

A tooltip should show up, but it doesn’t from version 0.65.0 on up.

Screenshots

Desktop (please complete the following information):

  • OS: Linux
  • Browser: chomre, firefox
  • Version: 0.65-0.67

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
archaeroncommented, Jan 1, 2021

@erceamet I used more or less the same process to “fix” it. Reinstalled multiple times. Deleted the node_modules folder and the package lock and without changing the package.json it fixed itself. No idea what happened 😦

But I’m glad it’s working for you now too

0reactions
erceametcommented, Dec 29, 2020

I’m using:

    "@nivo/bar": "0.67.0",
    "@nivo/calendar": "0.67.0",
    "@nivo/core": "0.67.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "typescript": "3.9.2"

and some others

I should update react and typescript though

Strangely I have the same version of React as you. My only option would probably be to try the calendar package on a newly created and see if it works or not. I will probably open a new issue if that’s the case. Thanks for your informative replies.

EDIT: I have managed to fix it. I did reinitiate the package-lock (again) using npm i --package-lock-only then I have removed any traces of the calendar -> reinstalled only the @nivo/calendar package -> started the app -> added the calendar back. That seemed to have fixed it for me. Strange is the fact that I did this process before and it didn’t seem to have done anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The venue isn't displayd in tooltip after upgrading The Events ...
Hi, After we upgraded The Events Calendar plugin to version 6 the venue has disappeared from the tooltip. It was working perfectly in...
Read more >
ui-calendar tooltip function not working - Stack Overflow
calendar to display a calendar and set of events(events being hardcoded as of now).But when i hover on the event the tooltip is...
Read more >
@nivo/tooltip: Versions | Openbase
Full version history for @nivo/tooltip including change logs. ... calendar: expose weekdayTicks prop on TimeRange component (#1634) (efafa016). Bug Fixes.
Read more >
Tooltips - Bootstrap
Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-attributes for local title storage.
Read more >
Tooltips | Charts - Google Developers
In this documentation, you'll learn how to create and customize tooltips in Google Charts. Specifying the tooltip type. Google Charts automatically creates ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found