Skip to content

Commit a03f5ef

Browse files
committed
Added title Vertical
1 parent aad5e3a commit a03f5ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsTitleVerticalConfig.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ const LegendPositionOptions = [
2121
export const EchartsTitleVerticalConfig = (function () {
2222
return new MultiCompBuilder(
2323
{
24-
position: dropdownControl(LegendPositionOptions, "top"),
24+
top: dropdownControl(LegendPositionOptions, "top"),
2525
},
2626
(props): LegendComponentOption => {
2727
const config: LegendComponentOption = {
2828
top: "top",
2929
type: "scroll",
3030
};
31-
config.top = props.position
31+
config.top = props.top
3232
return config;
3333
}
3434
)
3535
.setPropertyViewFn((children) => (
3636
<>
37-
{children.position.propertyView({
37+
{children.top.propertyView({
3838
label: trans("echarts.titlePositionVertical"),
3939
radioButton: true,
4040
})}

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function getEchartsConfig(
151151
let opt={
152152
"title": {
153153
"text": props.echartsTitle,
154-
'top': props.echartsLegendConfig.top === 'bottom' ?'top':'bottom',
154+
'top': props.echartsTitleVerticalConfig.top,
155155
"left":props.echartsTitleConfig.top,
156156
"textStyle": {
157157
"fontFamily": props?.titleStyle?.chartFontFamily || theme?.titleStyle?.fontFamily,

0 commit comments

Comments
 (0)