如何在图表顶部创建更多空间?jQuery在顶部添加更多空间
现在我得到这样的:
但我想这一点:
这是我的JS代码:
$("table.chart").each(function() {
var colors = [];
$("table.chart thead th:not(:first)").each(function() {
colors.push($(this).css("color"));
});
$(this).graphTable({
series: 'columns',
position: 'replace',
width: '100%',
height: '200px',
colors: colors
}, {
xaxis: {
tickSize: 1
}
});
});
您可以增加y轴的最大值,请参阅http://stackoverflow.com/questions/4690413/flot-library-setting-up-y-axis-to-min-0-and-max-24 – pritaeas 2012-02-01 12:02:30
它不可能是alpxy 20px或someting与高度?因为最大你可以说400,但如果someting有一个700的值... – Maanstraat 2012-02-01 12:06:01