Skip to content

Feature funnel chart #1436

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 17 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed theme river's language file.
  • Loading branch information
Imiss-U1025 committed Jan 11, 2025
commit 86a66a105a2298e19d2006c0d4b5d6a65852b136
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ export function getEchartsConfig(
theme?: any,
): EChartsOptionWithMap {
if (props.mode === "json") {

console.log(props.echartsOption)
let opt= props.echartsOption && {
title: {
text: props?.echartsTitle,
Expand All @@ -148,62 +146,62 @@ export function getEchartsConfig(
}
},
backgroundColor: parseBackground(props?.chartStyle?.background || theme?.chartStyle?.backgroundColor || "#FFFFFF"),
"tooltip": props.tooltip&&{
"trigger": "axis",
"axisPointer": {
"type": "line",
"lineStyle": {
"color": "rgba(0,0,0,0.2)",
"width": 2,
"type": "solid"
tooltip: props.tooltip&&{
trigger: "axis",
axisPointer: {
type: "line",
lineStyle: {
color: "rgba(0,0,0,0.2)",
width: 2,
type: "solid"
}
}
},
legend: props.legendVisibility && {
"top": props.echartsLegendConfig.top,
"left": props.echartsLegendAlignConfig.left,
"orient": props.echartsLegendOrientConfig.orient,
top: props.echartsLegendConfig.top,
left: props.echartsLegendAlignConfig.left,
orient: props.echartsLegendOrientConfig.orient,
data: props?.echartsOption?.data && Array.from(new Set((props.echartsOption.data).map(item => item[2]))),
textStyle: {
...styleWrapper(props?.legendStyle, theme?.legendStyle, 13)
}
},
"singleAxis": {
singleAxis: {
left: `${props?.left}%`,
right: `${props?.right}%`,
bottom: `${props?.bottom}%`,
top: `${props?.top}%`,
"type": "time",
"axisTick": {},
"axisLabel": {
type: "time",
axisTick: {},
axisLabel: {
...styleWrapper(props?.axisStyle, theme?.axisStyle, 13)
},
"splitLine": {},
"axisPointer": {
"animation": true,
"label": {
"show": true,
"color": "#fff"
splitLine: {},
axisPointer: {
animation: true,
label: {
show: true,
color: "#fff"
}
},
"splitNumber": props?.splitNumber
splitNumber: props?.splitNumber
},
"series": [
series: [
{
"type": props.echartsConfig.type,
"data": props.echartsOption.data,
"label": {
"show": true,
"position": "top",
"fontSize": 12
type: props.echartsConfig.type,
data: props.echartsOption.data,
label: {
show: true,
position: "top",
fontSize: 12
},
itemStyle: {
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle),
},
"emphasis": {
"itemStyle": {
"shadowBlur": 20,
"shadowColor": "rgba(0, 0, 0, 0.8)"
emphasis: {
itemStyle: {
shadowBlur: 20,
shadowColor: "rgba(0, 0, 0, 0.8)"
}
},
color: props.echartsOption?.color && props.echartsOption.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ export const enObj: I18nObjects = {
]
},
defaultThemeriverChartOption: {
color: ['#5470C6', '#91CC75', '#FAC858', '#6b51a1'],
data: [
['2025-01-01', 12, 'Product A'],
['2025-01-01', 10, 'Product B'],
Expand All @@ -515,6 +514,7 @@ export const enObj: I18nObjects = {
['2025-01-05', 20, 'Product C'],
['2025-01-05', 11, 'Product D']
],
color: ['#5470C6', '#91CC75', '#FAC858', '#6b51a1']
},

defaultMapJsonOption: defaultMapData,
Expand Down