javascript - Need help on viewing Chart values
问题描述
Column charts are working fine. But I am facing one issue while viewing the chart values. If two values are having a big difference between them, the lower value is not shown in the charts (which means it is showing there but I am not able to witness it) refer https://jsfiddle.net/g18evj5x/1/:
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Monthly Average Rainfall'
},
subtitle: {
text: 'Source: WorldClimate.com'
},
xAxis: {
categories: [
'Jan'
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: 'Rainfall (mm)'
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: 'Tokyo',
data: [1000]
}, {
name: 'New York',
data: [2]
}, {
name: 'London',
data: [4]
}, {
name: 'Berlin',
data: [6]
}]
});
thanks.
解决方案
推荐阅读
- azure - 雪花连接和设置
- javascript - 在 Chrome 扩展上下文菜单中修改 DOM 的权限
- opencv - 使用相机矩阵的物体与相机的真实距离
- python - Django - 选择相关查询集字段的 MAX
- c - 在 C/C++ 中将测试符号静态收集到一个数组中
- google-chrome - Chrome 扩展程序出现以下错误“此扩展程序可能已损坏。”
- oracle - ORA-28040: orcale19c 没有匹配的身份验证协议异常
- odoo - 获取合作伙伴(包括其子代)发票
- python - 使用python我可以平行复制一行x,y,z点,使x和z保持不变,y增加指定的间距吗?
- java - 订阅远程 rospy 发布者