@@ -24,7 +24,7 @@ $(function() {
2424 resize : true ,
2525 lineWidth :4 ,
2626 labels : [ 'Value' ] ,
27- lineColors : [ config . colorPrimary . toString ( ) ] ,
27+ lineColors : [ config . chart . colorPrimary . toString ( ) ] ,
2828 pointSize :5 ,
2929 } ) ;
3030
@@ -49,9 +49,9 @@ $(function() {
4949 hideHover : 'auto' ,
5050 resize : true ,
5151 lineColors : [
52- tinycolor ( config . colorPrimary . toString ( ) ) . lighten ( 10 ) . toString ( ) ,
53- tinycolor ( config . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( ) ,
54- config . colorPrimary . toString ( )
52+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . lighten ( 10 ) . toString ( ) ,
53+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( ) ,
54+ config . chart . colorPrimary . toString ( )
5555 ] ,
5656 lineWidth :2 ,
5757 pointSize :1 ,
@@ -66,9 +66,9 @@ $(function() {
6666 { label : "Mail-Order Sales" , value : 20 } ] ,
6767 resize : true ,
6868 colors : [
69- tinycolor ( config . colorPrimary . toString ( ) ) . lighten ( 10 ) . toString ( ) ,
70- tinycolor ( config . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( ) ,
71- config . colorPrimary . toString ( )
69+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . lighten ( 10 ) . toString ( ) ,
70+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( ) ,
71+ config . chart . colorPrimary . toString ( )
7272 ] ,
7373 } ) ;
7474
@@ -89,8 +89,8 @@ $(function() {
8989 hideHover : 'auto' ,
9090 resize : true ,
9191 barColors : [
92- config . colorPrimary . toString ( ) ,
93- tinycolor ( config . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( )
92+ config . chart . colorPrimary . toString ( ) ,
93+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( )
9494 ] ,
9595 } ) ;
9696
@@ -111,15 +111,15 @@ $(function() {
111111 hideHover : 'auto' ,
112112 resize : true ,
113113 lineColors : [
114- config . colorPrimary . toString ( ) ,
115- tinycolor ( config . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( )
114+ config . chart . colorPrimary . toString ( ) ,
115+ tinycolor ( config . chart . colorPrimary . toString ( ) ) . darken ( 10 ) . toString ( )
116116 ] ,
117117 } ) ;
118118 }
119119
120120 drawMorrisCharts ( ) ;
121121
122- watch ( config , "colorPrimary" , function ( ) {
122+ watch ( config . chart , function ( ) {
123123 drawMorrisCharts ( ) ;
124124 } ) ;
125125} ) ;
0 commit comments