1
1
import PropTypes from 'prop-types' ;
2
2
import React , { Component , Fragment } from 'react' ;
3
- import { DataSelector , Radio , Numeric } from '../index' ;
3
+ import { DataSelector , Radio , Numeric , MultiColorPicker } from '../index' ;
4
4
import RadioBlocks from '../widgets/RadioBlocks' ;
5
5
import Field from './Field' ;
6
6
import { connectToContainer } from 'lib' ;
@@ -91,6 +91,36 @@ class ErrorBars extends Component {
91
91
const mode = this . getMode ( ) ;
92
92
const showCustomDataControl = this . props . fullValue . type === 'data' ;
93
93
94
+ const styleAttrs = (
95
+ < Fragment >
96
+ < Radio
97
+ label = { _ ( 'Copy Y Style' ) }
98
+ attr = { `${ this . props . attr } .copy_ystyle` }
99
+ options = { [
100
+ { label : _ ( 'Yes' ) , value : true } ,
101
+ { label : _ ( 'No' ) , value : false } ,
102
+ ] }
103
+ />
104
+ < Radio
105
+ label = { _ ( 'Copy Z Style' ) }
106
+ attr = { `${ this . props . attr } .copy_zstyle` }
107
+ options = { [
108
+ { label : _ ( 'Yes' ) , value : true } ,
109
+ { label : _ ( 'No' ) , value : false } ,
110
+ ] }
111
+ />
112
+ < MultiColorPicker
113
+ label = { _ ( 'Color' ) }
114
+ attr = { `${ this . props . attr } .color` }
115
+ />
116
+ < Numeric label = { _ ( 'Thickness' ) } attr = { `${ this . props . attr } .thickness` } />
117
+ < Numeric
118
+ label = { _ ( 'Crossbar Width' ) }
119
+ attr = { `${ this . props . attr } .width` }
120
+ />
121
+ </ Fragment >
122
+ ) ;
123
+
94
124
if ( mode === 'symmetric' ) {
95
125
return (
96
126
< Fragment >
@@ -111,6 +141,7 @@ class ErrorBars extends Component {
111
141
attr = { `${ this . props . attr } .array` }
112
142
/>
113
143
) : null }
144
+ { styleAttrs }
114
145
</ Fragment >
115
146
) ;
116
147
}
@@ -144,6 +175,7 @@ class ErrorBars extends Component {
144
175
/>
145
176
</ Fragment >
146
177
) : null }
178
+ { styleAttrs }
147
179
</ Fragment >
148
180
) ;
149
181
}
0 commit comments