求助!flot 插件 x轴 y轴的 间距怎么调啊??
时间:2009-06-01
来源:互联网
求助!flot 插件 x轴 y轴的 间距怎么调啊??
作者: 5887538 发布时间: 2009-06-01
xaxis: {
mode: null, // null or "time"
min: null, // min. value to show, null means set automatically
max: null, // max. value to show, null means set automatically
autoscaleMargin: null, // margin in % to add if auto-setting min/max
ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks
tickFormatter: null, // fn: number -> string
labelWidth: null, // size of tick labels in pixels
labelHeight: null,
// mode specific options
tickDecimals: null, // no. of decimals, null means auto
tickSize: null, // number or [number, "unit"] 这就是刻度啊~!~
minTickSize: null, // number or [number, "unit"]
monthNames: null, // list of names of months
timeformat: null // format string to use
},
解决 .......
mode: null, // null or "time"
min: null, // min. value to show, null means set automatically
max: null, // max. value to show, null means set automatically
autoscaleMargin: null, // margin in % to add if auto-setting min/max
ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks
tickFormatter: null, // fn: number -> string
labelWidth: null, // size of tick labels in pixels
labelHeight: null,
// mode specific options
tickDecimals: null, // no. of decimals, null means auto
tickSize: null, // number or [number, "unit"] 这就是刻度啊~!~
minTickSize: null, // number or [number, "unit"]
monthNames: null, // list of names of months
timeformat: null // format string to use
},

作者: 5887538 发布时间: 2009-06-01
怎么解决的啊,发过来啊?
作者: coolboy0316 发布时间: 2009-06-03
var plot = $.plot($(flots),
[ { data: sin} ],
{ lines: { show: true },
points: { show: true },
grid: {hoverable: true, clickable: true },
yaxis: { min: 0},
xaxis:{tickSize:1,min:1,ticks:cos} // 这里的tickSize 就是设置间距(刻度)的~!
});
[ { data: sin} ],
{ lines: { show: true },
points: { show: true },
grid: {hoverable: true, clickable: true },
yaxis: { min: 0},
xaxis:{tickSize:1,min:1,ticks:cos} // 这里的tickSize 就是设置间距(刻度)的~!
});
作者: 5887538 发布时间: 2009-06-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28