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.

p.scaleLinear is not a function

See original GitHub issue

Hi, I am getting a error when I use your heatmap!

app.8afff0433bef2cc43286.js:138753 Uncaught TypeError: p.scaleLinear is not a function at e.value (app.8afff0433bef2cc43286.js:138753) at e.value (app.8afff0433bef2cc43286.js:138753) at e.value (app.8afff0433bef2cc43286.js:138753) at app.8afff0433bef2cc43286.js:58828 at measureLifeCyclePerf (app.8afff0433bef2cc43286.js:58639) at app.8afff0433bef2cc43286.js:58827 at CallbackQueue.notifyAll (app.8afff0433bef2cc43286.js:26305) at ReactReconcileTransaction.close (app.8afff0433bef2cc43286.js:60755) at ReactReconcileTransaction.closeAll (app.8afff0433bef2cc43286.js:15364) at ReactReconcileTransaction.perform (app.8afff0433bef2cc43286.js:15311)

Usage:

export default class PostHeatMap extends Component {

	constructor(props) {
		super(props)

		var data = [{
			"date": "2016-01-01",
			"total": 17164,
			"details": [{
				"name": "Project 1",
				"date": "2016-01-01 12:30:45",
				"value": 9192
			},
			{
				"name": "Project 2",
				"date": "2016-01-01 13:37:00",
				"value": 6753
			},
			{
				"name": "Project N",
				"date": "2016-01-01 17:52:41",
				"value": 1219
			}]
		}]

		this.state = {
			data: data,
		}

	}

	render() {
		return (
			<div>
				<CalendarHeatmap
					data={this.state.data}
					color='#45ff00'
				>
				</CalendarHeatmap>
			</div>
		)
	}
}

Can you please fix it? Thank you, it’s amazing heat map… 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
g1ebcommented, Jan 8, 2018

Thanks, let me know if you have any other issues and if I can help 😃

0reactions
JaLe29commented, Jan 8, 2018

Okay, you’re right.

This is my problem, in some library in my project, so far I have not figured out why.

You can close this issue. Your calendar working properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: d3.scaleLinear is not a function - Stack Overflow
scaleLinear is not a function . When I replace scaleLinear with scale.linear it does work, but then it returns the error TypeError: d3....
Read more >
[Solved]-TypeError: d3.scaleLinear is not a function-d3.js
Just tested scaleLinear and axisBottom with D3 V7. Everything works as expected, so the problem should be somewhere else: improper import, conflicting version, ......
Read more >
Upgrading d3 from v3 to v4 - keithp's blog
parse is not a function. fix: => d3.timeParse( “%Y-%m-%d %H:%M:%S” );. TypeError: d3.scale is undefined. fix: d3.scale.linear() => d3.
Read more >
d3-scale - npm
d3-scale. Scales are a convenient abstraction for a fundamental task in visualization: mapping a dimension of abstract data to a visual ...
Read more >
d3-scale.ScaleLinear.invert JavaScript and Node.js code ...
function brushed() { const selectedExtent = event.selection.map(d ... If the given value is outside the range, and clamping is not enabled, the mapping...
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