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.

`x` property is undefined for ticks in @nivo/stream chart

See original GitHub issue

When using tickValues option (e.g. tickValues = [‘a’, ‘b’, ‘c’]) in Stream or ResponsiveStream > axisBottom all the labels get rendered on the left because x is is undefined so the transform attribute is translate(undefined, y).

Also in the renderTick function the argument is missing x property. e.g.

{
 format: undefined,
 lineX: 0,
 lineY: 5,
 opacity: 1,
 rotate: 0,
 ...
 value: 'a'
 x: undefined,
 y: 0,
}

Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
plouccommented, Nov 27, 2019

I’d like to change the structure of the data to match the line component so it’s easier to customize the scale type used on x axis.

0reactions
stale[bot]commented, Nov 5, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chart.js - x-axis and tooltip label shows "undefined" in Chrome ...
I have an issue with Chart.js on my website. The chart is showing properly when the app language in Chrome is set to...
Read more >
Tick Identification Chart Tick-borne Disease Chart - Virginia.gov
Tick Identification Chart. Tick-borne Disease Chart. For more information visit www.vdh.virginia.gov/TickBrochure. Original image by Litwak for CDC; ...
Read more >
Tick-borne disease prevention - Mass.gov
Ticks are tiny bugs most likely found in shady, damp, brushy, wooded, or grassy areas (especially in tall grass), including your own backyard....
Read more >
ReferenceError: reference to undefined property "x" - JavaScript
The JavaScript warning "reference to undefined property" occurs when a script attempted to access an object property which doesn't exist.
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
Table of Contents. What Causes TypeError: Cannot Read ... TypeError: Cannot read properties of undefined (reading x). Error type: TypeError ...
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