mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Fix data labels
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user