Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Please find the image here

As you can see in the image. The second value is 1 and the highest value is around 160 hence the bar with value 1 is not visible to the user. If the highest values are even more bigger then all the smallest values are stuck at zero position, those are only visible when you hover over it and then it shows the black label, i also checked the options avaliable for barchart but couldnt find anything relavant. Is there any way to show them slighiglty above the zero position so that they are visible and bar chart doest seems to be empty

question from:https://stackoverflow.com/questions/65936791/smallest-values-are-invisible-in-ng2-charts-bar-charts

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
268 views
Welcome To Ask or Share your Answers For Others

1 Answer

No, this would totally go against the priciple of plotting the chart because then the chart doesnt represent the data correctly anymore. What you can do is bind the dataset with low values to a second Y axis so they go up high. But in this case it is a distorted image which is hard to compare bars with eachother.

If you really want it to show the only way is to adjust the value of it but then it is flawed data since you dont know if it is a true value or faked one that needs to be semi high to show


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...