@@ -5,20 +5,20 @@ define([
55 "dojo/query" ,
66 "dojo/on" ,
77 "dojo/html"
8- ] , function ( declare , Core , lang , domQuery , on , html ) {
8+ ] , function ( declare , Core , lang , domQuery , on , html ) {
99 "use strict" ;
1010
11- return declare ( "ChartJS.widgets.DoughnutChart.widget.DoughnutChart" , [ Core ] , {
11+ return declare ( "ChartJS.widgets.DoughnutChart.widget.DoughnutChart" , [ Core ] , {
1212
1313 _chartType : "doughnut" ,
1414
15- _processData : function ( ) {
15+ _processData : function ( ) {
1616 logger . debug ( this . id + "._processData" ) ;
1717 var sets = [ ] ,
1818 chartData = [ ] ,
1919 points = null ,
2020 set = {
21- points : [ ]
21+ points : [ ]
2222 } ,
2323 color = "" ,
2424 highlightcolor = "" ,
@@ -40,18 +40,18 @@ define([
4040
4141 label = set . dataset . get ( this . datasetlabel ) ;
4242 point = {
43- label : label ,
43+ label : label ,
4444 backgroundColor : ( this . seriesColorReduceOpacity ) ? this . _hexToRgb ( color , "0.5" ) : color ,
4545 hoverBackgroundColor : ( this . seriesColorReduceOpacity ) ? this . _hexToRgb ( color , "0.75" ) : highlightcolor ,
46- value : + ( set . dataset . get ( this . seriesylabel ) )
46+ value : + ( set . dataset . get ( this . seriesylabel ) )
4747 } ;
4848
4949 chartData . push ( point ) ;
5050 this . _activeDatasets . push ( {
5151 obj : set . dataset ,
52- dataset : point ,
53- idx : j ,
54- active : true
52+ dataset : point ,
53+ idx : j ,
54+ active : true
5555 } ) ;
5656 }
5757
@@ -60,9 +60,9 @@ define([
6060 this . _createLegend ( true ) ;
6161 } ,
6262
63- _loadData : function ( ) {
63+ _loadData : function ( ) {
6464 logger . debug ( this . id + "._loadData" ) ;
65- this . _executeMicroflow ( this . datasourcemf , lang . hitch ( this , function ( objs ) {
65+ this . _executeMicroflow ( this . datasourcemf , lang . hitch ( this , function ( objs ) {
6666 var obj = objs [ 0 ] , // Chart object is always only one.
6767 j = null ,
6868 dataset = null ;
@@ -72,17 +72,17 @@ define([
7272
7373 // Retrieve datasets
7474 mx . data . get ( {
75- guids : obj . get ( this . _dataset ) ,
76- callback : lang . hitch ( this , function ( datasets ) {
75+ guids : obj . get ( this . _dataset ) ,
76+ callback : lang . hitch ( this , function ( datasets ) {
7777 var set = null ;
7878 this . _data . datasets = [ ] ;
7979
8080 for ( j = 0 ; j < datasets . length ; j ++ ) {
8181 dataset = datasets [ j ] ;
8282
8383 set = {
84- dataset : dataset ,
85- sorting : + ( dataset . get ( this . datasetsorting ) )
84+ dataset : dataset ,
85+ sorting : + ( dataset . get ( this . datasetsorting ) )
8686 } ;
8787 this . _data . datasets . push ( set ) ;
8888 }
@@ -93,7 +93,7 @@ define([
9393
9494 } ,
9595
96- _createChart : function ( data ) {
96+ _createChart : function ( data ) {
9797 logger . debug ( this . id + "._createChart" ) ;
9898 if ( this . _chart !== null ) {
9999 this . _chart . destroy ( ) ;
@@ -104,34 +104,34 @@ define([
104104 options : this . _chartOptions ( {
105105
106106 elements : {
107- arc : {
108- //String - The colour of each segment stroke
109- borderColor : this . segmentStrokeColor ,
110- //Number - The width of each segment stroke
111- borderWidth : this . segmentShowStroke ? this . segmentStrokeWidth : 0
112- }
107+ arc : {
108+ //String - The colour of each segment stroke
109+ borderColor : this . segmentStrokeColor ,
110+ //Number - The width of each segment stroke
111+ borderWidth : this . segmentShowStroke ? this . segmentStrokeWidth : 0
112+ }
113113 } ,
114114
115115 //Number - Amount of animation steps
116- animationSteps : this . animationSteps ,
116+ animationSteps : this . animationSteps ,
117117
118118 //String - Animation easing effect
119- animationEasing : this . animationEasing ,
119+ animationEasing : this . animationEasing ,
120120
121121 //Boolean - Whether we animate the rotation of the Doughnut
122- animateRotate : this . animateRotate ,
122+ animateRotate : this . animateRotate ,
123123
124124 //Boolean - Whether we animate scaling the Doughnut from the centre
125- animateScale : this . animateScale ,
125+ animateScale : this . animateScale ,
126126
127- legendCallback : this . _legendAlternateCallback ,
127+ legendCallback : this . _legendAlternateCallback ,
128128
129129 //Number - The percentage of the chart that we cut out of the middle
130- cutoutPercentage : this . percentageInnerCutout
130+ cutoutPercentage : this . percentageInnerCutout
131131 } )
132132 } ) ;
133133
134- this . connect ( window , "resize" , lang . hitch ( this , function ( ) {
134+ this . connect ( window , "resize" , lang . hitch ( this , function ( ) {
135135 this . _resize ( ) ;
136136 } ) ) ;
137137
@@ -146,6 +146,4 @@ define([
146146 } ) ;
147147} ) ;
148148
149- require ( [ "ChartJS/widgets/DoughnutChart/widget/DoughnutChart" ] , function ( ) {
150- "use strict" ;
151- } ) ;
149+ require ( [ "ChartJS/widgets/DoughnutChart/widget/DoughnutChart" ] ) ;
0 commit comments