如何在圖表頂部創建更多空間?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