Car/Css/ichartjs/plugin/ichart.gauge2d.js

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * @overview the ichartjs Plug-in,the circular gauge component
 * @component#@chart#iChart.Gauge2D
 * @extend#iChart.Chart
 */
iChart.Gauge2D = iChart.extend(iChart.Chart, {
	/**
	 * initialize the context for the Gauge2D
	 */
	configure : function(config) {
		/**
		 * invoked the super class's configuration
		 */
		iChart.Gauge2D.superclass.configure.call(this);
		
		this.type = 'gauge2d';
		this.dataType = 'single';
		
		this.set({
			/**
			 * @cfg {Float/String} Specifies the gauge's radius.If given a percentage,it will relative to minDistance.(default to '100%')
			 */
			radius : '100%',
			/**
			 * @cfg {Float} Specifies the gauge's initialized value.If not given,it will the same as tickmarks.lower.(default to null)
			 */
			value : null,
			panel:{
				background_color:'#FEFEFE',
				gradient:true,
				gradient_mode:'RadialGradientOutIn',
				border:{
					color:'#dedede',
					width:0
				},
				iborder:{
					radius:'95%',
					color:'#d8d8da',
					width:10
				}
			},
			tickmarks:{
				start_angle:30,
				/**
				 * @cfg {Float} Specifies the gauge's end angle.(default to null)
				 */
				end_angle:null,
				space_angle:4,
				radius:'88%',
				width:10,
				bg_color:null,
				size:2,
				count:5,
				color:'#344352',
				lower : 0,
				upper : 100,
				small_color:'#344352',
				small_count:5,
				/**
				 * [[0, 80, 'green'],[80, 90 'yellow'],[90, 100, 'red']]
后面还有 322 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。