Fix data labels

This commit is contained in:
guerler
2016-08-24 17:27:50 -04:00
parent a31640c730
commit 942c59bca4
3 changed files with 11 additions and 16 deletions
@@ -6,12 +6,6 @@ define( [ 'plugin/charts/utilities/tabular-form', 'plugin/plugins/nvd3/nv.d3' ],
tag : 'svg',
keywords : 'nvd3 default',
groups : {
key: {
label : 'Provide a label',
type : 'text',
placeholder : 'Data label',
value : 'Data label'
},
color: {
label : 'Pick a series color',
type : 'color'
@@ -1,5 +1,5 @@
define( [ 'plugin/charts/nvd3/common/config' ], function( nvd3_config ) {
return $.extend( true, {}, {
define( [ 'plugin/charts/utilities/tabular-form' ], function( default_config ) {
return $.extend( true, default_config, {
title : 'Pie chart',
category : 'Area charts',
library : 'NVD3',
@@ -7,7 +7,7 @@ define( [ 'plugin/charts/nvd3/common/config' ], function( nvd3_config ) {
keywords : 'nvd3 default',
datatype : 'tabular',
groups : {
x : {
label : {
label : 'Labels',
type : 'data_column',
is_label : true,
@@ -14,12 +14,13 @@ define( [ 'plugin/charts/utilities/tabular-inputs' ], function( Inputs ) {
show_legend : Inputs.boolean( 'show_legend', { label: 'Show legend', help: 'Would you like to add a legend?' } ),
use_panels : Inputs.boolean( 'use_panels', { label: 'Use multi-panels', help: 'Would you like to separate your data into individual panels?' } )
},
series : [{
name : 'key',
label : 'Provide a label',
type : 'text',
placeholder : 'Data label',
value : 'Data label'
}]
groups : {
key: {
label : 'Provide a label',
type : 'text',
placeholder : 'Data label',
value : 'Data label'
}
}
}
});