Skip to content

Commit a5ea833

Browse files
committed
Rename BinSize to AxisInterval
1 parent 3fb5ead commit a5ea833

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function getSmallestUnit(milliseconds) {
3636
return smallestUnit;
3737
}
3838

39-
class UnconnectedBinSize extends Component {
39+
class UnconnectedAxisInterval extends Component {
4040
constructor(props) {
4141
super(props);
4242

@@ -146,7 +146,7 @@ class UnconnectedBinSize extends Component {
146146
<NumericInput
147147
value={this.getDisplayValue(this.props.fullValue)}
148148
onUpdate={value => this.update(value)}
149-
editableClassName="binsize-milliseconds"
149+
editableClassName="AxisInterval-milliseconds"
150150
/>
151151
</Field>
152152
) : (
@@ -160,16 +160,16 @@ class UnconnectedBinSize extends Component {
160160
}
161161
}
162162

163-
UnconnectedBinSize.contextTypes = {
163+
UnconnectedAxisInterval.contextTypes = {
164164
localize: PropTypes.func,
165165
};
166166

167-
UnconnectedBinSize.propTypes = {
167+
UnconnectedAxisInterval.propTypes = {
168168
fullValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
169169
updatePlot: PropTypes.func,
170170
attr: PropTypes.string,
171171
fullContainer: PropTypes.object,
172172
...Field.propTypes,
173173
};
174174

175-
export default connectToContainer(UnconnectedBinSize);
175+
export default connectToContainer(UnconnectedAxisInterval);

src/components/fields/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import DropdownCustom from './DropdownCustom';
3232
import MultiColorPicker from './MultiColorPicker';
3333
import RectanglePositioner from './RectanglePositioner';
3434
import LocationSelector from './LocationSelector';
35-
import BinSize from './BinSize';
35+
import AxisInterval from './AxisInterval';
3636
import {
3737
AnnotationArrowRef,
3838
AnnotationRef,
@@ -124,6 +124,6 @@ export {
124124
LocationSelector,
125125
HoveronDropdown,
126126
HovermodeDropdown,
127-
BinSize,
127+
AxisInterval,
128128
NumericOrDate,
129129
};

src/components/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import {
6060
HovermodeDropdown,
6161
TickFormat,
6262
NumericOrDate,
63-
BinSize,
63+
AxisInterval,
6464
} from './fields';
6565

6666
import {
@@ -182,5 +182,5 @@ export {
182182
HoveronDropdown,
183183
HovermodeDropdown,
184184
NumericOrDate,
185-
BinSize,
185+
AxisInterval,
186186
};

src/default_panels/StyleTracesPanel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
VisibilitySelect,
3535
GroupCreator,
3636
NumericOrDate,
37-
BinSize,
37+
AxisInterval,
3838
} from '../components';
3939
import {
4040
BinningDropdown,
@@ -230,12 +230,12 @@ const StyleTracesPanel = (props, {localize: _}) => (
230230
<NumericOrDate label={_('X Bin Start')} attr="xbins.start" axis="x" />
231231
<NumericOrDate label={_('X Bin End')} attr="xbins.end" axis="x" />
232232
<Numeric label={_('Max X Bins')} attr="nbinsx" />
233-
<BinSize label={_('X Bin Size')} attr="xbins.size" axis="x" />
233+
<AxisInterval label={_('X Bin Size')} attr="xbins.size" axis="x" />
234234

235235
<NumericOrDate label={_('Y Bin Start')} attr="ybins.start" axis="y" />
236236
<NumericOrDate label={_('Y Bin End')} attr="ybins.end" axis="y" />
237237
<Numeric label={_('Max Y Bins')} attr="nbinsy" />
238-
<BinSize label={_('Y Bin Size')} attr="ybins.size" axis="y" />
238+
<AxisInterval label={_('Y Bin Size')} attr="ybins.size" axis="y" />
239239
</PlotlySection>
240240
<PlotlySection label={_('Bar Position')}>
241241
<NumericOrDate label={_('Base')} attr="base" />

src/styles/components/widgets/_numeric-input.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@
8585
fill: var(--color-text-base) !important;
8686
}
8787

88-
.binsize-milliseconds {
88+
.AxisInterval-milliseconds {
8989
width: 50%;
9090
}

0 commit comments

Comments
 (0)