p.scaleLinear is not a function
See original GitHub issueHi, 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thanks, let me know if you have any other issues and if I can help 😃
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.