shequ/assets/pages/jquery.peity.init.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Theme: Montran Admin Template
* Author: Coderthemes
* Component: Peity Chart
* Usage: $.PeityChart.createLine(<params>);
*
*/
!function($) {
"use strict";
var PeityChart = function() {};
//create pie
PeityChart.prototype.createPie = function ($element, $colors) {
$($element).peity("pie", {
fill: $colors
});
return $element;
},
//create line
PeityChart.prototype.createLine = function ($element, $strokeColor, $fillColor, $width) {
$($element).peity("line", {
fill: $strokeColor,
stroke: $fillColor,
width: $width
});
return $($element);
},
//create bar with width
PeityChart.prototype.createBar = function ($element, $colors, $width) {
$($element).peity("bar", {
fill: $colors,
width: $width
});
return $element;
},
//create donut
PeityChart.prototype.createDonut = function ($element, $colors) {
$($element).peity("donut", {
fill: $colors
});
return $element;
},
//init
PeityChart.prototype.init = function() {
// creating some example chart
this.createPie("span.pie", ['#317eeb', '#d7d7d7', '#ffffff']);
//line
this.createLine(".line", '#317eeb', '#169c81');
//bar
this.createBar('.bar', ["#317eeb", "#d7d7d7"]);
//bar
后面还有 31 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
