File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,13 @@ function buildTimeAxis<TDatum>(
134
134
options . getValue ( datum . originalDatum )
135
135
)
136
136
137
- if ( minValue === undefined ) {
138
- throw new Error ( 'Invalid scale min/max' )
139
- }
140
-
141
- if ( maxValue === undefined ) {
137
+ if ( minValue === undefined || maxValue === undefined ) {
138
+ console . info ( {
139
+ options,
140
+ series,
141
+ range,
142
+ values : allDatums . map ( d => options . getValue ( d . originalDatum ) ) ,
143
+ } )
142
144
throw new Error ( 'Invalid scale min/max' )
143
145
}
144
146
@@ -194,11 +196,13 @@ function buildLinearAxis<TDatum>(
194
196
)
195
197
: extent ( allDatums , datum => options . getValue ( datum . originalDatum ) )
196
198
197
- if ( minValue === undefined ) {
198
- throw new Error ( 'Invalid scale min/max' )
199
- }
200
-
201
- if ( maxValue === undefined ) {
199
+ if ( minValue === undefined || maxValue === undefined ) {
200
+ console . info ( {
201
+ options,
202
+ series,
203
+ range,
204
+ values : allDatums . map ( d => options . getValue ( d . originalDatum ) ) ,
205
+ } )
202
206
throw new Error ( 'Invalid scale min/max' )
203
207
}
204
208
You can’t perform that action at this time.
0 commit comments