@@ -3,6 +3,7 @@ import {UnconnectedDropdown} from './Dropdown';
33import { UnconnectedDropdownCustom } from './DropdownCustom' ;
44import { UnconnectedFlaglist } from './Flaglist' ;
55import { UnconnectedNumeric } from './Numeric' ;
6+ import { UnconnectedNumericOrDate } from './NumericOrDate' ;
67import { UnconnectedAxisRangeValue } from './AxisRangeValue' ;
78import { UnconnectedRadio } from './Radio' ;
89import Info from './Info' ;
@@ -432,7 +433,7 @@ export const PositioningRef = connectToContainer(UnconnectedDropdown, {
432433 } ,
433434} ) ;
434435
435- export const PositioningNumeric = connectToContainer ( UnconnectedNumeric , {
436+ export const PositioningNumeric = connectToContainer ( UnconnectedNumericOrDate , {
436437 modifyPlotProps : ( props , context , plotProps ) => {
437438 const { fullContainer, fullValue, updatePlot} = plotProps ;
438439 if (
@@ -676,3 +677,15 @@ export const HoverColor = connectToContainer(UnconnectedColorPicker, {
676677 return plotProps ;
677678 } ,
678679} ) ;
680+
681+ export const BinSize = connectToContainer ( UnconnectedNumeric , {
682+ modifyPlotProps : ( props , context , plotProps ) => {
683+ const { localize : _ } = context ;
684+ if ( typeof plotProps . fullValue === 'string' && plotProps . fullValue [ 0 ] === 'M' ) {
685+ plotProps . fullValue = plotProps . fullValue . substring ( 1 ) ;
686+ plotProps . min = 1 ;
687+ plotProps . max = 12 ;
688+ plotProps . units = parseInt ( plotProps . fullValue , 10 ) === 1 ? _ ( 'Month' ) : _ ( 'Months' ) ;
689+ }
690+ } ,
691+ } ) ;
0 commit comments