我在将背景图像放在高图表图表中时遇到了一些问题。
我正在努力实现这一目标:
但问题是我找不到任何方法可以做到这一点,至少我无法在API中找到plotBackgroundImage
的偏移或宽度或高度的选项。
现在图片看起来像这样:
以下是检查员的代码:
<image
preserveAspectRatio="none"
x="10"
y="10"
width="260"
height="81"
xlink:href="http://i1355.photobucket.com/albums/q708/babiidenis/calculator-graph_zps5d26b791.png">
</image>
我想要的是: x =“0”y =“0”width =“282”height =“106”,有可能吗?
答案 0 :(得分:2)
我希望你有宽度的类型 - 因为Sure Highcharts不会设置比你为图表宽度设置的宽度更高的宽度。
一般情况下,您没有停用边距,请设置:margin: [0,0,0,0]
。演示:http://jsfiddle.net/v99YX/1/