Highcharts - 如何从区域图中删除开始和结束的填充 [英] Highcharts - How can I remove starting and ending padding from area chart
本文介绍了Highcharts - 如何从区域图中删除开始和结束的填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
小提琴 -
我尝试了很多选项,例如minpadding,margin等,但它们都不起作用。
startOnTick:true,
minpadding:0
解决方案
为此不需要使用类别或x轴的日期时间类型
只需更改数据
采用此格式
数据:[,[x1,y1],[x2,y2],[x3,y3],[x4,y4],[x5,y5]]
例如:
data:[[1750,106],[1800,107],[1850 ,111],[1900,133],[1950,221],[1999,767],[2050,1766]]
更新了您的js小提琴,请检查 http://jsfiddle.net/vKLPP/1/
希望这会有用
Fiddle - http://jsfiddle.net/vKLPP/
I want to remove the white space on both sides (see the red lines).
I tried various options like minpadding, margin etc but none of them seem to work.
startOnTick: true,
minpadding:0
解决方案
for this no need to go with categories or the datetime type of x-axis just change the data
in this format
data: [,[x1,y1],[x2,y2],[x3,y3],[x4,y4],[x5,y5]]
ex:
data: [[1750,106], [1800,107], [1850,111], [1900,133], [1950,221], [1999,767], [2050,1766]]
updated your js fiddle please check http://jsfiddle.net/vKLPP/1/
hope this will be useful
这篇关于Highcharts - 如何从区域图中删除开始和结束的填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文