jqplot画折线图

发布时间:2020-03-30 20:09:20 作者:1473348968
来源:网络 阅读:605
<html>
<head>
<title>practise and templet</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="jquery-1.4.min.js" ></script>
<!--支持ie的js-->
<script type="text/javascript" src="excanvas.js" ></script>

<script type="text/javascript" src="jquery.jqplot.js" ></script>
<script type="text/javascript" src="jqplot.cursor.js" ></script>
<script type="text/javascript" src="jqplot.dateAxisRenderer.js" ></script>
<script type="text/javascript" src="jqplot.highlighter.js" ></script>
<script type="text/javascript">
$(function(){
var line1=[['2014-01-01', 100], ['2014-1-2', 123], ['2014-1-3', 23], ['2014-1-4', 345],
      ['2014-1-5', 232], ['2014-1-6', 234], ['2014-1-7', 312], ['2014-1-8', 23],
      ['2014-1-9', 234], ['2014-1-10', 31], ['2014-1-11', 234], ['2014-1-12', 42]];
  var plot1 = $.jqplot('chart1', [line1], {
      title:'近期销售量统计',
      axes:{
        xaxis:{
          renderer:$.jqplot.DateAxisRenderer,
          tickOptions:{
            // x轴刻度标签格式化为月日,如: May 1
            //formatString:'%b %#d'
            formatString:'%y-%m-%#d'
          } 
        },
        yaxis:{
          tickOptions:{
            // y轴刻度标签格式化为带两位小数的美元数,如: $500.00
            formatString:'%.0f'
            }
        }
      },
      highlighter: {
        // 是否高亮显示
        show: true,
        // 当鼠标移动到数据点上时,数据点扩大的增量增量
        sizeAdjust: 7.5
      },
      cursor: {
        // 是否显示光标,若为true,光标默认为十字
        show: false
      }
  });
 
});
</script>
</head>
<body>
<!--容器-->
<div id="chart1" ></div>
</body>
</html>

=======================

jqplot画折线图

jq库在我的下载里下载

推荐阅读:
  1. unity 画折线图,饼型图插件
  2. jqplot画饼状图(模式二)

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

jqplot画折线图 jqplot 画折线图

上一篇:PHP字符串

下一篇:中国农业银行数据中心智能布线系统

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》