File tree Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 11# Angular-Dimple Changelog
22
3+ # v1.1.1
4+ * add time formats and such
5+
36# v1.1.0
47* add functionality inside ng-repeat
58* graphs update live when scope changes
Original file line number Diff line number Diff line change 11{
22 "name" : " angular-dimple" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " Angular.js wrapper for the Dimple charting language" ,
55 "repository" : " https://github.com/esripdx/angular-dimple" ,
66 "license" : " ISC" ,
Original file line number Diff line number Diff line change 11[
22 {
3+ "Name" : " Tom" ,
34 "Height" : 64 ,
45 "Weight" : 190 ,
56 "Time" : 1408406400000
67 },{
8+ "Name" : " Tom" ,
79 "Height" : 68 ,
810 "Weight" : 195 ,
911 "Time" : 1408579200000
1012 },{
13+ "Name" : " Tom" ,
1114 "Height" : 69 ,
1215 "Weight" : 198 ,
1316 "Time" : 1408665600000
1417 },{
18+ "Name" : " Tom" ,
1519 "Height" : 70 ,
1620 "Weight" : 205 ,
1721 "Time" : 1408752000000
1822 },{
23+ "Name" : " Tom" ,
1924 "Height" : 67 ,
2025 "Weight" : 198 ,
2126 "Time" : 1408838400000
2227 },{
28+ "Name" : " Tom" ,
2329 "Height" : 76 ,
2430 "Weight" : 195 ,
2531 "Time" : 1408924800000
2632 }
27- ]
33+ ]
34+
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ angular.module('angular-dimple.x', [])
1717 x = chart . addMeasureAxis ( 'x' , [ $attrs . groupBy , $attrs . field ] ) ;
1818 } else if ( $attrs . type == 'Percent' ) {
1919 x = chart . addPctAxis ( 'x' , $attrs . field ) ;
20+ } else if ( $attrs . type == 'Time' ) {
21+ x = chart . addTimeAxis ( 'x' , $attrs . field ) ;
22+ if ( $attrs . format ) {
23+ x . tickFormat = $attrs . format ;
24+ }
2025 } else {
2126 x = chart . addCategoryAxis ( 'x' , [ $attrs . groupBy , $attrs . field ] ) ;
2227 }
@@ -28,6 +33,11 @@ angular.module('angular-dimple.x', [])
2833 x = chart . addMeasureAxis ( 'x' , $attrs . field ) ;
2934 } else if ( $attrs . type == 'Percent' ) {
3035 x = chart . addPctAxis ( 'x' , $attrs . field ) ;
36+ } else if ( $attrs . type == 'Time' ) {
37+ x = chart . addTimeAxis ( 'x' , $attrs . field ) ;
38+ if ( $attrs . format ) {
39+ x . tickFormat = $attrs . format ;
40+ }
3141 } else {
3242 x = chart . addCategoryAxis ( 'x' , $attrs . field ) ;
3343 }
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ angular.module('angular-dimple.y', [])
1717 y = chart . addCategoryAxis ( 'y' , $attrs . field ) ;
1818 } else if ( $attrs . type == 'Percent' ) {
1919 y = chart . addPctAxis ( 'y' , $attrs . field ) ;
20+ } else if ( $attrs . type == 'Time' ) {
21+ y = chart . addTimeAxis ( 'x' , $attrs . field ) ;
22+ if ( $attrs . format ) {
23+ y . tickFormat = $attrs . format ;
24+ }
2025 } else {
2126 y = chart . addMeasureAxis ( 'y' , $attrs . field ) ;
2227 }
@@ -28,6 +33,11 @@ angular.module('angular-dimple.y', [])
2833 y = chart . addCategoryAxis ( 'y' , $attrs . field ) ;
2934 } else if ( $attrs . type == 'Percent' ) {
3035 y = chart . addPctAxis ( 'y' , $attrs . field ) ;
36+ } else if ( $attrs . type == 'Time' ) {
37+ y = chart . addTimeAxis ( 'x' , $attrs . field ) ;
38+ if ( $attrs . format ) {
39+ y . tickFormat = $attrs . format ;
40+ }
3141 } else {
3242 y = chart . addMeasureAxis ( 'y' , $attrs . field ) ;
3343 }
You can’t perform that action at this time.
0 commit comments