File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,12 @@ export class UnconnectedAxisInterval extends Component {
126
126
const binStartValue = this . props . fullContainer [ attrHead ] . start ;
127
127
const BinStartIsDate =
128
128
typeof binStartValue === 'string' && ( isDateTime ( binStartValue ) || isJSDate ( binStartValue ) ) ;
129
+ const tick0 =
130
+ this . props . fullContainer . tick0 &&
131
+ ( this . props . fullContainer . tick0 || this . props . fullContainer . colorbar . tick0 ) ;
132
+ const tick0IsDate = tick0 && ( isDateTime ( tick0 ) || isJSDate ( tick0 ) ) ;
129
133
130
- return BinStartIsDate ? (
134
+ return BinStartIsDate || tick0IsDate ? (
131
135
< Field { ...this . props } >
132
136
< Dropdown
133
137
options = { [
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
3
3
import {
4
4
AxesRange ,
5
5
DTicks ,
6
+ DTicksInterval ,
6
7
NTicks ,
7
8
ColorPicker ,
8
9
Dropdown ,
@@ -121,7 +122,7 @@ class StyleAxesPanel extends Component {
121
122
/>
122
123
123
124
< DTicks label = { _ ( 'Step Offset' ) } attr = "tick0" />
124
- < DTicks label = { _ ( 'Step Size' ) } attr = "dtick" />
125
+ < DTicksInterval label = { _ ( 'Step Size' ) } attr = "dtick" />
125
126
< NTicks label = { _ ( 'Max Number of Lines' ) } attr = "nticks" />
126
127
</ VisibilitySelect >
127
128
</ PlotlySection >
@@ -274,7 +275,7 @@ class StyleAxesPanel extends Component {
274
275
/>
275
276
276
277
< DTicks label = { _ ( 'Step Offset' ) } attr = "tick0" />
277
- < DTicks label = { _ ( 'Step Size' ) } attr = "dtick" />
278
+ < DTicksInterval label = { _ ( 'Step Size' ) } attr = "dtick" />
278
279
< NTicks label = { _ ( 'Max Number of Labels' ) } attr = "nticks" />
279
280
</ VisibilitySelect >
280
281
</ PlotlySection >
@@ -310,7 +311,7 @@ class StyleAxesPanel extends Component {
310
311
/>
311
312
312
313
< DTicks label = { _ ( 'Step Offset' ) } attr = "tick0" />
313
- < DTicks label = { _ ( 'Step Size' ) } attr = "dtick" />
314
+ < DTicksInterval label = { _ ( 'Step Size' ) } attr = "dtick" />
314
315
< NTicks label = { _ ( 'Max Number of Markers' ) } attr = "nticks" />
315
316
</ VisibilitySelect >
316
317
</ PlotlySection >
You can’t perform that action at this time.
0 commit comments