Sparklines 图表

发布时间:2020-07-10 20:50:50 作者:爱笑嘚蛋蛋
来源:网络 阅读:324

参数

$(selector).sparkline(values, options);
typeOne of 'line' (default), 'bar', 'tristate', 'discrete', 'bullet', 'pie' or 'box'
widthWidth of the chart - Defaults to 'auto' - May be any valid css width - 1.5em, 20px, etc (using a number without a unit specifier won't do what you want) - This option does nothing for bar and tristate chars (see barWidth)
heightHeight of the chart - Defaults to 'auto' (line height of the containing tag)
lineColorUsed by line and discrete charts to specify the colour of the line drawn as a CSS values string
fillColorSpecify the colour used to fill the area under the graph as a CSS value. Set to false to disable fill
chartRangeMinSpecify the minimum value to use for the range of Y values of the chart - Defaults to the minimum value supplied
chartRangeMaxSpecify the maximum value to use for the range of Y values of the chart - Defaults to the maximum value supplied
compositeIf true then don't erase any existing chart attached to the tag, but draw another chart over the top - Note that width and height are ignored if an existing chart is detected.
Note: You'll usually want to lock the axis on both charts using chartRangeMin and chartRangeMax if you want the same value on each chart to occupy the same point.
enableTagOptionsIf true then options can be specified as attributes on each tag to be transformed into a sparkline, as well as passed to the sparkline() function. See also tagOptionPrefix
tagOptionPrefixString that each option passed as an attribute on a tag must begin with. Defaults to 'spark'
tagValuesAttributeThe name of the tag attribute to fetch values from, if present - Defaults to 'values'
disableHiddenCheckSet to true to disable checking for hidden sparklines. This can be beneficial if you know you'll never attempt to draw a sparkline into a hidden parent element as it avoids a browser reflow for the test, increasing rendering performance.
Defaults to false - New in 2.0


链接:

http://omnipotent.net/jquery.sparkline/#s-docs

推荐阅读:
  1. sparklines插件的bullet怎么使用
  2. sparklines的Evolution有什么用

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

sparklines spar

上一篇:移除数组中指定的某个值

下一篇:学习笔记-Exchange Web Service API-开发

相关阅读

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

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