File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export const Container: React.FC<{
76
76
ref = { htmlRef }
77
77
onClick = { onSize }
78
78
style = { {
79
- maxHeight : htmlRef . current ?. clientWidth || ' 400px' ,
79
+ maxHeight : `max( ${ htmlRef . current ?. clientWidth || 400 } px, 400px)` ,
80
80
} }
81
81
/>
82
82
</ ResizeObserver >
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export const ChartElement: React.FC<RenderElementProps> = (props) => {
154
154
data-be = { 'chart' }
155
155
style = { {
156
156
flex : 1 ,
157
- minWidth : Math . min ( minWidth , 856 ) ,
157
+ minWidth : `min( ${ Math . min ( minWidth , 856 ) } px, 100%)` ,
158
158
maxWidth : '100%' ,
159
159
} }
160
160
ref = { htmlRef }
@@ -289,6 +289,7 @@ export const ChartElement: React.FC<RenderElementProps> = (props) => {
289
289
onColumnLengthChange = { setColumnLength }
290
290
chartType = { chartType }
291
291
chartData = { chartData }
292
+ title = { rest ?. title }
292
293
config = { {
293
294
height,
294
295
x,
@@ -331,7 +332,7 @@ export const ChartElement: React.FC<RenderElementProps> = (props) => {
331
332
border : '1px solid #eee' ,
332
333
borderRadius : '0.5em' ,
333
334
margin : 'auto' ,
334
- minWidth : `calc(${ 100 / columnLength } % - 16px)` ,
335
+ minWidth : `max( calc(${ 100 / columnLength } % - 16px), 256px )` ,
335
336
flex : 1 ,
336
337
} }
337
338
onClick = { ( e ) => {
You can’t perform that action at this time.
0 commit comments