$(function() { "use strict"; var _minRatio = 0, _maxRatio = 150; $.widget('custom.cwGauge', { ratioDiv: null, valueDiv: null, unitDiv: null, options: { width: '100%', height: 'auto', //maxValue: 5000, maxValue: 0, colorType: 1, title: '', value: 0, unit: '' }, _init: function() { }, _getUnitAccountClass: function() { switch (this.options.colorType) { case 1: return 'unit_account' case 2: return 'unit_account2' default: return 'unit_account3' } }, _create: function() { this.element.addClass('graph_box_wrap'); var title = $('
', { 'class': 'horizontal_graph_title' }).text(this.options.title); var ul = $('