Skip to content

Remote Chart #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 19, 2025
Prev Previous commit
Next Next commit
Fixed basic, legancy, gauge charts to apply theme correctly.
  • Loading branch information
Imiss-U1025 committed Jan 19, 2025
commit cf5ff040e63afdbd2970f5061113d0f89b9255d2
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ export function getEchartsConfig(
itemStyle: {
...series.itemStyle,
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle)
},
lineStyle: {
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle)
}
})),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function getEchartsConfig(
...props.legendConfig,
textStyle: {
...styleWrapper(props?.legendStyle, theme?.legendStyle, 15)
}
},
},
tooltip: props.tooltip&&{
trigger: "axis",
Expand Down Expand Up @@ -228,6 +228,9 @@ export function getEchartsConfig(
itemStyle: {
...series.itemStyle,
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle)
},
lineStyle: {
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle)
}
})),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ export function getEchartsConfig(
},
detail: {
...styleWrapper(props?.legendStyle, theme?.legendStyle, 16, '#ffffff', 0, 'inherit'),
"width": props?.legendStyle?.detailSize?.split('px')[0] || theme?.legendStyle?.detailSize.split('px')[0] || 40,
"height": props?.legendStyle?.detailSize?.split('px')[1] || theme?.legendStyle?.detailSize.split('px')[1] || 20,
"width": props?.legendStyle?.detailSize?.split('px')[0] || theme?.legendStyle?.detailSize && theme?.legendStyle?.detailSize.split('px')[0] || 40,
"height": props?.legendStyle?.detailSize?.split('px')[1] || theme?.legendStyle?.detailSize && theme?.legendStyle?.detailSize.split('px')[1] || 20,
formatter: props?.multiTitleGaugeOption?.data?.map(data => data.formatter)[0],
}
}
Expand Down Expand Up @@ -554,8 +554,8 @@ export function getEchartsConfig(
},
detail: {
...styleWrapper(props?.legendStyle, theme?.legendStyle, 16, 'inherit', 1, ''),
"width": props?.legendStyle?.detailSize?.split('px')[0] || theme?.legendStyle?.detailSize.split('px')[0] || 50,
"height": props?.legendStyle?.detailSize?.split('px')[1] || theme?.legendStyle?.detailSize.split('px')[1] || 20,
"width": props?.legendStyle?.detailSize?.split('px')[0] || theme?.legendStyle?.detailSize && theme?.legendStyle?.detailSize.split('px')[0] || 50,
"height": props?.legendStyle?.detailSize?.split('px')[1] || theme?.legendStyle?.detailSize && theme?.legendStyle?.detailSize.split('px')[1] || 20,
formatter: props?.ringGaugeOption?.data?.map(data => data.formatter)[0],
}
}
Expand Down