-
Notifications
You must be signed in to change notification settings - Fork 234
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
Labels on axis not shown on heatmap #300
Comments
Solved this problem by
and manually render highcharts.
I think that |
@plag Did you ever get a "Cannot read property 'lineWidth' of undefined at k.pointAttribs" error while rendering the heatmap? I am able to see numbers on my heatmap, but no colors appear. |
For others having trouble, the issue may be that Heatmap is actually part of Highmaps, not Highcharts. This works for me (stateless functional component, adapt as necessary if you have a class):
|
@justinlevinson Highmaps only helps me generate the heatmap, but not the axis label. Were you able to generate axis label this way as well? |
@justinlevinson same question with @SophiaYan , could you tell us more about how to generate axis label? |
SnapluDJ. You can do like this. import React, { Component } from 'react' import ReactHighchart from 'react-highcharts' Heatmap(ReactHighchart.Highcharts) |
@NurbekAman thx buddy! |
I still can't get axis labels with:
@justinlevinson @NurbekAman am I missing something that one of you has? |
@16chuang I'm now getting this exact error for my heatmap, and not seeing anything render. Were you able to solve this by any chance? |
plag's method worked for me. But I did not need to "manually render the chart" Here's the full code, in case anyone wants to copy it and check the output.
|
Thanks for following up. The code below ended up doing the trick:
|
Not sure why my imports look different, but this is what worked for me:
|
@ashok-sc This is no different from what works, except that you're importing all the modules with the * instead of a single import
|
@prashand well if I don't do |
Any help? Isn't there any standard solution to load heatmaps correctly? |
I'm also seeing this :/ |
@NurbekAman how do you instance it? ? |
Even now, I just faced this issue. export {HeatMap} --> export default HeatMap |
I can show xAxis as the code: xAxis: { yAxis: { |
This configuration not show labels on xAxis and yAxis. How can i get it? On local demo it looks like
Highcharts demo is normally show labels. Can check it here https://www.highcharts.com/demo/heatmap
xAxis: { dataLabels|labels: { enabled: true } }
is not workingoptions:
The text was updated successfully, but these errors were encountered: