File tree Expand file tree Collapse file tree 5 files changed +8
-2
lines changed Expand file tree Collapse file tree 5 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ You can also check the
18
18
- Dimension unit labels are now fetched not only in English language, but
19
19
others too – and we fall back to a regular string in case the label is not
20
20
localized
21
+ - Value labels in segmented bar charts are now centered horizontally
21
22
- It's now possible to enter www links in text blocks link elements, instead
22
23
of having to always use https://
23
24
- Fixes
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ export const renderBars = (
72
72
. style ( "height" , "100%" )
73
73
. append ( "xhtml:p" )
74
74
. call ( setSegmentValueLabelStyles )
75
- . style ( "padding-left" , "4px" )
75
+ . style ( "padding-left" , "2px" )
76
+ . style ( "padding-right" , "2px" )
76
77
. style ( "color" , function ( d ) {
77
78
return d . valueLabelColor ?? select ( this ) . style ( "color" ) ;
78
79
} )
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ export const renderColumns = (
64
64
. append ( "xhtml:p" )
65
65
. call ( setSegmentValueLabelStyles )
66
66
. style ( "padding-top" , "4px" )
67
+ . style ( "padding-left" , "2px" )
68
+ . style ( "padding-right" , "2px" )
67
69
. style ( "color" , function ( d ) {
68
70
return d . valueLabelColor ?? select ( this ) . style ( "color" ) ;
69
71
} )
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ export const setSegmentValueLabelStyles = <
123
123
) => {
124
124
return g
125
125
. style ( "overflow" , "hidden" )
126
+ . style ( "width" , "100%" )
126
127
. style ( "margin" , 0 )
127
128
. style ( "text-align" , "center" )
128
129
. style ( "font-size" , "12px" )
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ const MultiFilterContent = ({
445
445
< Divider sx = { { mt : 4 } } />
446
446
</ Box >
447
447
{ enableSettingShowValuesBySegment ? (
448
- < Flex justifyContent = "flex-end" gap = { 2 } >
448
+ < Flex gap = { 2 } alignItems = "center" sx = { { color : "primary.main" } } >
449
449
< Button
450
450
variant = "text"
451
451
color = "blue"
@@ -467,6 +467,7 @@ const MultiFilterContent = ({
467
467
>
468
468
< Trans id = "controls.filter.show-values.all" > Show all values</ Trans >
469
469
</ Button >
470
+ •
470
471
< Button
471
472
variant = "text"
472
473
color = "blue"
You can’t perform that action at this time.
0 commit comments