File tree 1 file changed +13
-1
lines changed
apps/web/src/components/v2Editor/customBlocks/visualizationV2
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ function BrieferResult(props: {
272
272
xAxis : props . result . xAxis . map ( ( axis ) => ( {
273
273
...axis ,
274
274
axisLabel : {
275
- hideOverlap : axis . type !== 'category' ,
275
+ hideOverlap : true ,
276
276
interval : axis . type === 'category' ? 0 : 'auto' ,
277
277
} ,
278
278
splitLine : {
@@ -342,6 +342,18 @@ function Echarts(props: EchartsProps) {
342
342
// set animation to be as fast as possible, since finished event does not get fired when no animation
343
343
animationDelay : 0 ,
344
344
animationDuration : 1 ,
345
+ xAxis : ( props . option . xAxis
346
+ ? Array . isArray ( props . option . xAxis )
347
+ ? props . option . xAxis
348
+ : [ props . option . xAxis ]
349
+ : [ ]
350
+ ) . map ( ( axis ) => ( {
351
+ ...axis ,
352
+ axisLabel : {
353
+ ...axis . axisLabel ,
354
+ hideOverlap : false ,
355
+ } ,
356
+ } ) ) ,
345
357
} )
346
358
347
359
const handleFinished = ( ) => {
You can’t perform that action at this time.
0 commit comments