+ -
当前位置:首页 → 问答吧 → 求助!flot 插件 x轴  y轴的 间距怎么调啊??

求助!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
                },
  解决 .......

作者: 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 就是设置间距(刻度)的~!
             });

作者: 5887538   发布时间: 2009-06-04

热门下载

更多