您好,登錄后才能下訂單哦!
參數
$(selector).sparkline(values, options);
type | One of 'line' (default), 'bar', 'tristate', 'discrete', 'bullet', 'pie' or 'box' |
width | Width 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) |
height | Height of the chart - Defaults to 'auto' (line height of the containing tag) |
lineColor | Used by line and discrete charts to specify the colour of the line drawn as a CSS values string |
fillColor | Specify the colour used to fill the area under the graph as a CSS value. Set to false to disable fill |
chartRangeMin | Specify the minimum value to use for the range of Y values of the chart - Defaults to the minimum value supplied |
chartRangeMax | Specify the maximum value to use for the range of Y values of the chart - Defaults to the maximum value supplied |
composite | If 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. |
enableTagOptions | If 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 |
tagOptionPrefix | String that each option passed as an attribute on a tag must begin with. Defaults to 'spark' |
tagValuesAttribute | The name of the tag attribute to fetch values from, if present - Defaults to 'values' |
disableHiddenCheck | Set 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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。