Skip to content

Commit

Permalink
Fix default label value, histogram color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 19, 2016
1 parent 015b684 commit e4000b1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Expand Up @@ -17,7 +17,8 @@ define( [ 'plugin/charts/forms/inputs' ], function( Inputs ) {
name : 'key',
label : 'Provide a label',
type : 'text',
placeholder : 'Data label'
placeholder : 'Data label',
value : 'Data label'
}]
}
});
Expand Up @@ -17,7 +17,8 @@ define( [ 'plugin/charts/forms/default', 'plugin/plugins/nvd3/nv.d3' ], function
name : 'key',
label : 'Provide a label',
type : 'text',
placeholder : 'Data label'
placeholder : 'Data label',
value : 'Data label'
},{
name : 'color',
label : 'Pick a series color',
Expand Down
@@ -1,5 +1,5 @@
define( [ 'plugin/charts/nvd3/common/config' ], function( nvd3_config ) {
return $.extend( true, {}, nvd3_config, {
define( [ 'plugin/charts/forms/default' ], function( default_config ) {
return $.extend( true, {}, default_config, {
library : 'NVD3',
tag : 'svg',
title : 'Histogram',
Expand All @@ -11,6 +11,17 @@ define( [ 'plugin/charts/nvd3/common/config' ], function( nvd3_config ) {
title : 'Observations',
is_numeric : true
}
}
},
series : [{
name : 'key',
label : 'Provide a label',
type : 'text',
placeholder : 'Data label',
value : 'Data label'
},{
name : 'color',
label : 'Pick a series color',
type : 'color'
}]
});
});

0 comments on commit e4000b1

Please sign in to comment.