【发布时间】:2013-06-23 03:24:32
【问题描述】:
我想从实际上是条形图的迷你图显示 jquery。我无法查看它。而且我是 jquery 的新手,
$("#sparkline").sparkline([5,6,7,2,0,4,2,4], {
type: 'bar',
height: '300',
barWidth: 20,
barSpacing: 10,
barColor: '#615c5a',
nullColor: '#3366cc '});
这是与jquery 1.10兼容的页面代码
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script>
<script>
$("#sparkline").sparkline([5,6,7,2,0,4,2,4], {
type: 'bar',
height: '300',
barWidth: 20,
barSpacing: 10,
barColor: '#615c5a',
nullColor: '#3366cc '});
</script>
</head>
<body>
<div id ="sparkline" />
</body>
</html>
为了插件,我从
生成了迷你图的代码http://omnipotent.net/jquery.sparkline/#s-news
【问题讨论】:
标签: jquery class html visibility sparklines