本帖最后由 qq245282209 于 2013-09-27 20:20:13 编辑

解决方案 »

  1.   

    什么叫什么报表?有什么选项?
    HTML中的普通线性图表啊. 
      

  2.   

    这是我设置flot的js语句
    var follow = $('#concern-statistics').plot([d2],{
    xaxis:{
    ticks : x,
    min : 0,
    max : 15
    },
    yaxis:{
    autoscaleMargin: 0.25 ,
    },
    });
      

  3.   


    http://www.humblesoftware.com/flotr2/#!basic
      

  4.   


    http://www.humblesoftware.com/flotr2/#!basic我之前用的是0.8版本的. 
    换成flotr2怎么就总报错"Uncaught The target container must be visible "
    html代码:
    <div class="tab-pane active" id="concern-statistics"></div>
    css:
    #concern-statistics {
    width : 600px;
        height: 384px;
        margin: 8px auto;
    position: relative;
    background-color: #eee;
    }
    js代码:
    var container = document.getElementById("concern-statistics");
    var x = [];
    for(var j = 0;j<=15;j++){
    x.push([j,j*2]);
    }
    var d2 = [[0, 730], [2, 500], [4, 800], [6, 130]];
    var follow = Flotr.draw(container,[d2],{
    xaxis: {
                minorTickFreq: 4
            },
            grid: {
                minorVerticalLines: true
            }
    });