jquery中的plot函数的使用
【摘要】
调用plot函数的方法如下:
var plot = $.plot(placeholder, data, options)
$.plot($("#submission"), [
...
调用plot函数的方法如下:
var plot = $.plot(placeholder, data, options)
$.plot($("#submission"), [
{label: "<?php echo $MSG_SUBMIT?>", data: d1, points: {show: true},lines:{show:true},color:"#00FFFF"},
{label: "<?php echo $MSG_AC?>", data: d2, lines: {show: true}, color:"#00FF00"},
{label: "<?php echo $MSG_LANGUAGE_C?>", data: language_d0, lines: {show: true},color:"#FFFF00"},
{label: "<?php echo $MSG_LANGUAGE_CPP?>", data: language_d1, lines: {show: true},color:"#FF7D00"},
{label: "<?php echo $MSG_LANGUAGE_JAVA?>", data: language_d6, lines: {show: true},color:"#FF0000"},
{label: "<?php echo $MSG_LANGUAGE_PYTHON?>", data: language_d3, lines: {show: true},color:"#0000FF"}
], {
grid: {
backgroundColor: {colors: ["#fff", "#d2d2ff"]}
},
xaxis: {
mode: "time"//,
//max:(new Date()).getTime(),
//min:(new Date()).getTime()-100*24*3600*1000
},
legend:
{
position:
"nw" //这里设置label在表格中的位置。”nw“,"ne", "sw" ,"se" 分别表示左上,右上,左下,右下
}
});
});
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
文章来源: blog.csdn.net,作者:爱玲姐姐,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jal517486222/article/details/82779645
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)