js数据可视化--flotr2.js


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>flotr2title>

head>
<body>
<div id="chart" style="width:600px;height:300px">div>



<script src="Flotr2-master/flotr2.js">script>


<script>
    var wins=[
        [
            [2006,13],
            [2007,11],
            [2008,15],
            [2009,15],
            [2010,18],
            [2011,21],
            [2012,28]
        ]
    ];
//    调用flotr2库,建立图表
    window.οnlοad=function(){
        Flotr.draw(
            document.getElementById("chart"),
            wins,{
                bars:{
                    show:true
                }
            }

        )
    }
script>
body>

html>

你可能感兴趣的:(js,可视化,数据展示)