const result = {
data: {
"overallSituation.overallSituationMargin": {
top: 50,
bottom: 25,
left: 45,
right: 35,
},
"overallSituation.dataAnimation": true,
"legend.legendType": "legendTypePreset",
"legend.legendIcon": "mgApi/component-resources/2D/other/dian1.png",
"legend.legendGraphicalSize": {
legendIconWidth: 10,
legendIconHeight: 10,
},
"legend.legendIconSize": {
legendIconWidth: 10,
legendIconHeight: 10,
},
"legend.graphicFillet": 0,
"legend.legendSpacing": 3,
"legend.clickInteraction": true,
"legendCategory.legendCategoryTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"legendLayout.layoutNumberColumns": 2,
"legendLayout.layoutSpacing": {
layoutRowSpacing: 30,
layoutColumnSpacing: 25,
},
"legendLayout.legendPosition": 1,
"legendLayout.layoutDeviation": {
layoutDeviationX: 0,
layoutDeviationY: 0,
},
"NoStyleSelected.legendTransparency": 30,
"barAttr.barWidth": 15,
"barAttr.barMaxWidth": 0,
"barAttr.barMinWidth": 0,
"barAttr.barMinHeight": 0,
"barAttr.barGap": 40,
"barAttr.barCategoryGap": 50,
"timedRendering.timedRenderingTime": 10,
"axisXGroup.axisXEnable": true,
"axisXLabel.axisXLabelFormat": "taxonomicType",
"axisXLabel.displayForm": "MM月",
"axisXLabel.axisXLabelExhibition": {
axisXLabelRotate: 0,
},
"axisXLabel.axisXLabelDeviation": {
axisXLabelDeviationX: 0,
axisXLabelDeviationY: 0,
},
"axisXLabel.axisXLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"axisXLabel.intervalNumber": 0,
"axisXLabel.axisXLabelWidth": 0,
"axisXLabel.axisXLabelOverflow": "break",
"axisXAxis.axisXAxisColor": "rgba(186,231,255,1)",
"axisXAxis.axisXAxisThickness": 1,
"axisXScale.axisXScaleColor": "rgba(186,231,255,1)",
"axisXScale.axisXScaleThickness": 1,
"axisXScale.axisXScaleLength": 6,
"axisXGridLine.dashedLineStyle": "3,3",
"axisXGridLine.axisXGridLineColor": "rgba(230,247,255,0.2)",
"axisXGridLine.axisXGridLineThickness": 1,
"axisYGroup.axisYEnable": true,
"axisYEnableGroup.axisYType": "value",
"axisYEnableGroup.axisYLogBase": 10,
"axisYLabel.axisYLabelValueRange": {
axisYminValue: "",
axisYmaxValue: "",
},
"axisYLabel.axisYNullValueRange": {
axisYminValue: "",
axisYmaxValue: "",
},
"axisYLabel.axisYscaleAdaptation": false,
"axisYLabel.axisYLabelsuffixText": "",
"axisYLabel.axisYLabelDeviation": {
axisYLabelDeviationX: 0,
axisYLabelDeviationY: 0,
},
"axisYLabel.axisYLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"axisYscaleAdaptationGroup.axisYpattern": "quantityConstraint",
"axisYscaleAdaptationGroup.axisYLabelnumberLabels": 3,
"axisYscaleAdaptationGroup.axisYLabelstep": 100,
"axisYscaleAdaptationGroup.axisYLabeldecimalPlaces": 0,
"axisYLabelUnit.axisYLabelUnitContent": "单位",
"axisYLabelUnit.axisYLabelUniTtextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"axisYLabelUnit.axisYLabelUnitDeviation": {
axisYLabelUnitDeviationX: -30,
axisYLabelUnitDeviationY: 0,
},
"axisYAxis.axisYAxisColor": "rgba(186,231,255,1)",
"axisYAxis.axisYAxisThickness": 1,
"axisYScale.axisYScaleColor": "rgba(186,231,255,1)",
"axisYScale.axisYScaleThickness": 1,
"axisYScale.axisYScaleLength": 6,
"axisYGridLine.axisYGridDashedStyle": "3,3",
"axisYGridLine.axisYGridLineColor": "rgba(230,247,255,0.2)",
"axisYGridLine.axisYGridLineThickness": 1,
"axisZGroup.axisZEnable": false,
"axisZEnableGroup.axisZType": "value",
"axisZEnableGroup.axisZLogBase": 10,
"axisZLabel.axisZLabelValueRange": {
axisZminValue: "",
axisZmaxValue: "",
},
"axisZLabel.axisZNullValueRange": {
axisYminValue: "",
axisYmaxValue: "",
},
"axisZLabel.axisZscaleAdaptation": false,
"axisZLabel.axisZLabelsuffixText": "",
"axisZLabel.axisZLabelDeviation": {
axisZLabelDeviationX: 6,
axisZLabelDeviationY: 0,
},
"axisZLabel.axisZLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"axisZscaleAdaptationGroup.axisZpattern": "quantityConstraint",
"axisZscaleAdaptationGroup.axisZLabelnumberLabels": 3,
"axisZscaleAdaptationGroup.axisZLabelstep": 100,
"axisZscaleAdaptationGroup.axisZLabeldecimalPlaces": 0,
"axisZLabelUnit.axisZLabelUnitContent": "",
"axisZLabelUnit.axisZLabelUniTtextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"axisZLabelUnit.axisZLabelUnitDeviation": {
axisZLabelUnitDeviationX: -25,
axisZLabelUnitDeviationY: 0,
},
"axisZAxis.axisZAxisColor": "rgba(186,231,255,1)",
"axisZAxis.axisZAxisThickness": 1,
"axisZScale.axisZScaleColor": "rgba(186,231,255,1)",
"axisZScale.axisZScaleThickness": 1,
"axisZScale.axisZScaleLength": 6,
"axisZGridLine.axisZGridDashedStyle": "3,3",
"axisZGridLine.axisZGridLineColor": "rgba(230,247,255,0.2)",
"axisZGridLine.axisZGridLineThickness": 1,
"promptBoxTabs.automaticRotation": false,
"promptBoxTabs.hoverTrigger": true,
"promptBoxTabs.residenceTime": 2,
"promptBox.tooltipBoxsize": {
w: 10,
h: 10,
},
"promptBox.promptBoxDeviation": {
deviationX: 0,
deviationY: 0,
},
"promptBox.promptBoxBackground": "",
"promptBox.promptBoxsize": {
promptBoxwidth: 120,
promptBoxheight: 100,
},
"promptBox.promptBoxMargin": {
top: 13,
bottom: 10,
left: 12,
right: 12,
},
"frameData.frameDatalineHeight": 28,
"XAxisData.frameDataXAxisTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 16,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"XAxisData.textStyleAlignment": "left",
"XAxisData.textStyleDeviation": {
x: 0,
y: 0,
},
"frameDataStyle.frameDataSeriesName": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"frameDataStyle.frameDataSeriesValue": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"frameDataStyle.suffixContent": "",
"frameDataStyle.suffixSpacing": 5,
"indicator.indicatorColor": "rgba(255,255,255,0.3)",
"controlBar.controlBarShow": false,
"controlBarGroup.brushSelect": false,
"controlBarGroup.filterMode": "filter",
"controlBarGroup.controlBarHeight": 20,
"controlBarGroup.moveHandleSize": 7,
"controlBarGroup.controlBarBColor": "rgba(20,95,255,0.1)",
"controlBarGroup.controlBarMargin": {
marginLeft: 35,
marginRight: 35,
},
"controlBarDetails.dataRange": {
start: 0,
end: 35,
},
"controlBarDetails.controlBarDetailsColor": "rgba(255,255,255,0.3)",
axisYLabelUnitSeries: [
{
"axisYLabelUnitSeries.valueRange": {
min: "0",
max: "1000",
},
"axisYLabelUnitSeries.unitPrefix": "千",
"axisYLabelUnitSeries.unitScale": 1000,
},
],
axisZLabelUnitSeries: [
{
"axisZLabelUnitSeries.valueRange": {
min: "0",
max: "1000",
},
"axisZLabelUnitSeries.unitPrefix": "千",
"axisZLabelUnitSeries.unitScale": 1000,
},
],
dataSeries: [
{
"dataSeries.seriesMapping": {
fieldName: "系列一",
displayName: "系列一",
},
"dataSeries.seriesType": "bar",
"dataSeries.legendImage": "",
"dataSeries.legendChecked": true,
"dataSeries.stackValue": "",
"dataSeries.verticalAxisSelection": "YAxis",
"valueLabel.seriesLineLabelStyleShow": false,
"valueLabel.barBGStyleColor": {
type: "gradient",
pure: "rgba(141, 145, 154,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(141, 145, 154,0.35)",
},
{
offset: 100,
color: "rgba(141, 145, 154,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"valueLabel.barBGStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"valueLabel.barBGStyleColorOpacity": 1,
"valueLabel.seriesLabelStyleShow": false,
"seriesLineLabelStyleShow_true_group.seriesLineLabelPosition": "top",
"seriesLineLabelStyleShow_true_group.valueLineLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"seriesLineLabelStyleShow_true_group.labelLineDeviation": {
deviationX: 0,
deviationY: 0,
},
"seriesLineStyle.seriesLineType": "solid",
"seriesLineStyle.seriesLineWidth": 2,
"seriesLineStyle.seriesLineColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"seriesLineStyle.seriesLineColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"seriesLineStyle.seriesLineColorOpacity": 1,
"seriesLineStyle.smooth": 0,
"seriesLineStyle.connectNulls": true,
"seriesLineAreaStyle.areaStyleColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"seriesLineAreaStyle.areaStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"seriesLineAreaStyle.areaStyleColorOpacity": 0.3,
"symbolStyle.symbolStyleType": "default",
"symbolStyle.symbol": "circle",
"symbolStyle.symbolStyleColor": {
type: "gradient",
pure: "rgba(30,231,231,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(30,231,231,0.35)",
},
{
offset: 100,
color: "rgba(30,231,231,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"symbolStyle.symbolStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"symbolStyle.symbolImage": "",
"symbolStyle.symbolSize": {
symbolSizeW: 5,
symbolSizeH: 5,
},
"symbolStyle.symbolOffset": {
symbolOffsetX: 0,
symbolOffsetY: 0,
},
"emphasisStyle.seriesEmphasisScale": false,
"emphasisStyle.seriesEmphasisFocus": "none",
"seriesEmphasisLineStyle.seriesEmphasisLineType": "solid",
"seriesEmphasisLineStyle.seriesEmphasisLineWidth": 2,
"seriesEmphasisLineStyle.seriesEmphasisLineColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"seriesEmphasisLineStyle.seriesEmphasisLineColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"seriesEmphasisLineStyle.seriesEmphasisLineColorOpacity": 1,
"seriesEmphasisValueLabel.seriesEmphasisLabelStyleShow": false,
"seriesEmphasisValueLabel.seriesEmphasisValueLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"seriesGroupBar.barStyleColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"seriesGroupBar.barStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"seriesGroupBar.barStyleColorOpacity": 1,
"seriesGroupBar.showBackground": false,
"seriesLabelStyleShow_true_group.seriesLabelPosition": "top",
"seriesLabelStyleShow_true_group.valueLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"seriesLabelStyleShow_true_group.labelDeviation": {
deviationX: 0,
deviationY: 5,
},
"seriesLabelStyleShow_true_group.seriesLabelPointShow": false,
"seriesLabelPoint.seriesLabelPointWH": {
x: 15,
y: 15,
},
"seriesLabelPoint.seriesLabelPointType": "default",
"seriesLabelPoint.seriesLabelPointColor": "rgba(255,255,255,1)",
"seriesLabelPoint.seriesLabelPointImage": "",
"seriesLabelPoint.seriesLabelPointBorderRadius": 15,
markPointSeries: [
{
"markPointSeries.markPointType": "min",
"markPointSeries.markPointLabelOffset": {
x: 0,
y: 0,
},
"markPointLabelConfig.markPointLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"markPointLabelConfig.markPointLabelWh": {
x: 0,
y: 0,
},
"markPointLabelConfig.markPointLabelPadding": {
x: 5,
y: 6,
},
"markPointLabelConfig.markPointPosition": "top",
"markPointLabelConfig.markPointDistance": 4,
"markPointBgConfig.markPointBgColorSelect": "solidBgColor",
"markPointBgConfig.markPointBgColor": "rgba(9, 40, 67, 0)",
"markPointBgConfig.markPointBgimage": "",
"markPointSymbolStyle.markPointSymbolStyleType": "default",
"markPointSymbolStyle.markPointSymbol": "circle",
"markPointSymbolStyle.markPointColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"markPointSymbolStyle.markPointColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"markPointSymbolStyle.markPointSymbolImage": "",
"markPointSymbolStyle.markPointSymbolSize": {
markPointSymbolSizeW: 4,
markPointSymbolSizeH: 4,
},
"markPointSymbolStyle.markPointSymbolOffset": {
markPointSymbolOffsetX: 0,
markPointSymbolOffsetY: 0,
},
"markPointPrefixStyle.markPointPrefixShow": false,
"markPointPrefixShow_true_group.markPointPrefixStyleSelect": "image",
"markPointPrefixShow_true_group.markPointPrefixImage": "",
"markPointPrefixShow_true_group.markPointPrefixWH": {
markPointPrefixW: 10,
markPointPrefixH: 10,
},
"markPointPrefixShow_true_group.markPointPrefixborderRadius": 0,
"markPointPrefixShow_true_group.markPointPrefixinput": "$",
"markPointPrefixShow_true_group.markPointPrefixTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 14,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 0,
fontStyle: "normal",
},
"markPointPrefixShow_true_group.markPointPrefixWrap": false,
"markPointSuffixStyle.markPointSuffixShow": false,
"markPointSuffixShow_true_group.markPointSuffixStyleSelect": "image",
"markPointSuffixShow_true_group.markPointSuffixImage": "",
"markPointSuffixShow_true_group.markPointSuffixWH": {
markPointSuffixW: 10,
markPointSuffixH: 10,
},
"markPointSuffixShow_true_group.markPointSuffixborderRadius": 0,
"markPointSuffixShow_true_group.markPointSuffixinput": "$",
"markPointSuffixShow_true_group.markPointSuffixTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 14,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 0,
fontStyle: "normal",
},
"markPointSuffixShow_true_group.markPointSuffixWrap": false,
},
],
markLineSeries: [
{
"proBarBorderConfig.markPointLabelBorderStyle": "solid",
"proBarBorderConfig.markPointLabelBorderWidth": 0,
"proBarBorderConfig.markPointLabelBorderColor": "rgba(26,246,254,1)",
"proBarBorderConfig.markPointLabelBorderRadius": 0,
"proBarBorderConfig.markLineLabelBorderStyle": "solid",
"proBarBorderConfig.markLineLabelBorderWidth": 0,
"proBarBorderConfig.markLineLabelBorderColor": "rgba(26,246,254,1)",
"proBarBorderConfig.markLineLabelBorderRadius": 0,
"markLineSeries.markLineType": "min",
"markLineType_custom_group.markLineAxisType": "yAxis",
"markLineType_custom_group.markLineAxisValue": 2,
"markLineLabelConfig.markLineLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"markLineLabelConfig.markLineLabelWh": {
x: 0,
y: 0,
},
"markLineLabelConfig.markLineLabelPadding": {
x: 5,
y: 6,
},
"markLineLabelConfig.markLinePosition": "end",
"markLineLabelConfig.markLineDistance": {
x: 4,
y: 0,
},
"markLineBgConfig.markLineBgColorSelect": "solidBgColor",
"markLineBgConfig.markLineBgColor": "rgba(9, 40, 67, 0)",
"markLineBgConfig.markLineBgimage": "",
"markLineSymbolStyle.markLineSymbolStyleType": "default",
"markLineSymbolStyle.markLineSymbol": "circle",
"markLineSymbolStyle.markLineSymbolImage": "",
"markLineSymbolStyle.markLineSymbolSize": {
w: 4,
h: 4,
},
"markLineSymbolStyle.markLineSymbolOffset": {
x: 0,
y: 0,
},
"markLineStyle.markLineStyleType": "solid",
"markLineStyle.markLineWidth": 1,
"markLineStyle.markLineColor": "rgba(24,144,255,1)",
"markLineStyle.markLineColorOpacity": 1,
"markLinePrefixStyle.markLinePrefixShow": false,
"markLinePrefixShow_true_group.markLinePrefixStyleSelect": "image",
"markLinePrefixShow_true_group.markLinePrefixImage": "",
"markLinePrefixShow_true_group.markLinePrefixWH": {
markLinePrefixW: 10,
markLinePrefixH: 10,
},
"markLinePrefixShow_true_group.markLinePrefixborderRadius": 0,
"markLinePrefixShow_true_group.markLinePrefixinput": "$",
"markLinePrefixShow_true_group.markLinePrefixTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 14,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 0,
fontStyle: "normal",
},
"markLinePrefixShow_true_group.markLinePrefixWrap": false,
"markLineSuffixStyle.markLineSuffixShow": false,
"markLineSuffixShow_true_group.markLineSuffixStyleSelect": "image",
"markLineSuffixShow_true_group.markLineSuffixImage": "",
"markLineSuffixShow_true_group.markLineSuffixWH": {
markLineSuffixW: 10,
markLineSuffixH: 10,
},
"markLineSuffixShow_true_group.markLineSuffixborderRadius": 0,
"markLineSuffixShow_true_group.markLineSuffixinput": "$",
"markLineSuffixShow_true_group.markLineSuffixTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 14,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 0,
fontStyle: "normal",
},
"markLineSuffixShow_true_group.markLineSuffixWrap": false,
},
],
cutsomLineDataSeries: [
{
"cutsomLineDataSeries.triggerCondition": {
filed: "y",
character: "==",
value: "200",
},
"cutsomsymbolStyle.cutsomsymbolStyleType": "default",
"cutsomsymbolStyle.cutsomsymbol": "circle",
"cutsomsymbolStyle.cutsomsymbolStyleColor": {
type: "gradient",
pure: "rgba(30,231,231,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(30,231,231,0.35)",
},
{
offset: 100,
color: "rgba(30,231,231,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"cutsomsymbolStyle.cutsomsymbolStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"cutsomsymbolStyle.cutsomsymbolImage": "",
"cutsomsymbolStyle.cutsomsymbolSize": {
symbolSizeW: 5,
symbolSizeH: 5,
},
"cutsomsymbolStyle.cutsomsymbolOffset": {
symbolOffsetX: 0,
symbolOffsetY: 0,
},
},
],
cutsomBarDataSeries: [
{
"cutsomvalueLabel.cutsomseriesLineLabelStyleShow": false,
"cutsomvalueLabel.cutsomseriesLabelStyleShow": false,
"cutsomseriesLineLabelStyleShow_true_group.cutsomseriesLineLabelPosition": "top",
"cutsomseriesLineLabelStyleShow_true_group.cutsomvalueLineLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"cutsomseriesLineLabelStyleShow_true_group.cutsomlabelLineDeviation": {
deviationX: 0,
deviationY: 0,
},
"cutsomBarDataSeries.triggerCondition": {
filed: "y",
character: "==",
value: "200",
},
"cutsomBarDataSeries.cutsombarStyleColor": {
type: "gradient",
pure: "rgba(24,144,255,0.35)",
gradient: {
stops: [
{
offset: 0,
color: "rgba(24,144,255,0.35)",
},
{
offset: 100,
color: "rgba(24,144,255,0.35)",
},
],
angle: 0,
direction: "linear",
},
},
"cutsomBarDataSeries.cutsombarStyleColorXY": {
x: 0,
y: 1,
x2: 0,
y2: 0,
},
"cutsomBarDataSeries.cutsombarStyleColorOpacity": 1,
"cutsomseriesLabelStyleShow_true_group.cutsomseriesLabelPosition": "top",
"cutsomseriesLabelStyleShow_true_group.cutsomvalueLabelTextStyle": {
fontFamily: "Microsoft Yahei",
fontSize: 12,
color: "rgba(255,255,255,1)",
fontWeight: "normal",
letterSpacing: 0,
lineHeight: 12,
fontStyle: "normal",
},
"cutsomseriesLabelStyleShow_true_group.cutsomlabelDeviation": {
deviationX: 0,
deviationY: 5,
},
"cutsomseriesLabelStyleShow_true_group.cutsomseriesLabelPointShow": false,
"cutsomseriesLabelPoint.cutsomseriesLabelPointWH": {
x: 15,
y: 15,
},
"cutsomseriesLabelPoint.cutsomseriesLabelPointType": "default",
"cutsomseriesLabelPoint.cutsomseriesLabelPointColor": "rgba(255,255,255,1)",
"cutsomseriesLabelPoint.cutsomseriesLabelPointImage": "",
"cutsomseriesLabelPoint.cutsomseriesLabelPointBorderRadius": 15,
},
],
"markPointSeries.markPointLabelOffset": {
x: 0,
y: 0,
},
},
],
},
group: {
"childrenBarStyle.legend": {
legend: {
displayName: "图例",
show: true,
icon: true,
},
},
"childrenBarStyle.barAttr": {
barAttr: {
displayName: "柱属性",
show: false,
icon: true,
},
},
"legendLayoutChildren.legendCategory": {
legendCategory: {
displayName: "类目",
show: true,
icon: true,
},
},
"legendLayoutChildren.legendLayout": {
legendLayout: {
displayName: "布局",
show: true,
},
},
"legendLayoutNoSelectedChildren.NoStyleSelected": {
NoStyleSelected: {
displayName: "未选择样式",
show: true,
},
},
"timedRendering_children.timedRendering": {
timedRendering: {
displayName: "定时渲染",
show: false,
icon: false,
},
},
"coordinateAxis.axisButtonGroup": {
axisXGroup: {
displayName: "X轴",
show: true,
},
axisYGroup: {
displayName: "Y轴",
show: true,
},
axisZGroup: {
displayName: "Z轴",
show: true,
},
},
"axisXLabelChildren.axisXLabel": {
axisXLabel: {
displayName: "轴标签",
show: true,
icon: true,
},
},
"axisXLabelChildren.axisXAxis": {
axisXAxis: {
displayName: "轴线",
show: true,
icon: true,
},
},
"axisXLabelChildren.axisXScale": {
axisXScale: {
displayName: "刻度",
show: true,
icon: true,
},
},
"axisXLabelChildren.axisXGridLine": {
axisXGridLine: {
displayName: "网格线",
show: false,
icon: false,
},
},
"axisYLabelChildren.axisYLabel": {
axisYLabel: {
displayName: "轴标签",
show: true,
icon: true,
},
},
"axisYLabelChildren.axisYLabelUnit": {
axisYLabelUnit: {
displayName: "轴单位",
show: true,
icon: true,
},
},
"axisYLabelChildren.axisYLabelUnitSeries_group": {
axisYLabelUnitSeries_group: {
displayName: "格式化",
show: true,
},
},
"axisYLabelChildren.axisYAxis": {
axisYAxis: {
displayName: "轴线",
show: false,
icon: false,
},
},
"axisYLabelChildren.axisYScale": {
axisYScale: {
displayName: "刻度",
show: false,
icon: false,
},
},
"axisYLabelChildren.axisYGridLine": {
axisYGridLine: {
displayName: "网格线",
show: true,
icon: true,
},
},
"axisZLabelChildren.axisZLabel": {
axisZLabel: {
displayName: "轴标签",
show: true,
icon: true,
},
},
"axisZLabelChildren.axisZLabelUnit": {
axisZLabelUnit: {
displayName: "轴单位",
show: false,
icon: false,
},
},
"axisZLabelChildren.axisZLabelUnitSeries_group": {
axisZLabelUnitSeries_group: {
displayName: "格式化",
show: true,
},
},
"axisZLabelChildren.axisZAxis": {
axisZAxis: {
displayName: "轴线",
show: true,
icon: true,
},
},
"axisZLabelChildren.axisZScale": {
axisZScale: {
displayName: "刻度",
show: false,
icon: true,
},
},
"axisZLabelChildren.axisZGridLine": {
axisZGridLine: {
displayName: "网格线",
show: true,
icon: true,
},
},
"seriesTabsChildren.dataSeries_group": {
dataSeries_group: {
displayName: "数据系列",
show: true,
},
},
"promptBoxChildren.promptBox": {
promptBox: {
displayName: "提示框",
show: true,
},
},
"frameDataChildren.frameData": {
frameData: {
displayName: "框内数据",
show: true,
},
},
"frameDataXAxisChildren.XAxisData": {
XAxisData: {
displayName: "类目标签",
show: true,
},
},
"frameDataStyleChildren.frameDataStyle": {
frameDataStyle: {
displayName: "数据样式",
show: true,
},
},
"indicatorChildren.indicator": {
indicator: {
displayName: "指示器",
show: true,
},
},
"controlBarDetailsChildren.controlBarDetails": {
controlBarDetails: {
displayName: "区域详情",
show: true,
},
},
dataSeries: [
{
"seriesChildren.valueLabel": {
valueLabel: {
displayName: "数值标签",
show: true,
},
},
"seriesChildren.seriesLineStyle": {
seriesLineStyle: {
displayName: "折线",
show: true,
},
},
"seriesChildren.seriesLineAreaStyle": {
seriesLineAreaStyle: {
displayName: "区域配置",
show: false,
icon: true,
},
},
"seriesChildren.symbolStyle": {
symbolStyle: {
displayName: "标记图形",
show: false,
icon: true,
},
},
"seriesChildren.emphasisStyle": {
emphasisStyle: {
displayName: "悬浮高亮",
show: false,
icon: true,
},
},
"seriesEmphasisChildren.seriesEmphasisLineStyle": {
seriesEmphasisLineStyle: {
displayName: "折线",
show: false,
icon: true,
},
},
"seriesEmphasisChildren.seriesEmphasisValueLabel": {
seriesEmphasisValueLabel: {
displayName: "数值标签",
show: false,
icon: true,
},
},
"showBackground_true_children.valueLabel": {
valueLabel: {
displayName: "柱条背景",
show: true,
icon: true,
},
},
"seriesBarChildren.valueLabel": {
valueLabel: {
displayName: "数值标签",
show: true,
},
},
"seriesLabelPointShow_true_children.seriesLabelPoint": {
seriesLabelPoint: {
displayName: "标点",
show: true,
},
},
"makeChildren.markPointSeries_group": {
markPointSeries_group: {
displayName: "标注系列",
show: true,
},
},
"makeChildren.markLineSeries_group": {
markLineSeries_group: {
displayName: "标线系列",
show: true,
},
},
markPointSeries: [
{
"markPointChildren.markPointLabelConfig": {
markPointLabelConfig: {
displayName: "标签配置",
icon: false,
show: true,
},
},
"markPointChildren.markPointBgConfig": {
markPointBgConfig: {
displayName: "标签背景",
icon: false,
show: true,
},
},
"markPointChildren.markPointSymbolStyle": {
markPointSymbolStyle: {
displayName: "标记图形",
show: true,
},
},
"markPointChildren.markPointPrefixStyle": {
markPointPrefixStyle: {
displayName: "前缀",
show: true,
},
},
"markPointChildren.markPointSuffixStyle": {
markPointSuffixStyle: {
displayName: "后缀",
show: true,
},
},
},
],
markLineSeries: [
{
"proBarBorderConfig_children.proBarBorderConfig": {
proBarBorderConfig: {
displayName: "边框",
show: true,
},
},
"markLineChildren.markLineLabelConfig": {
markLineLabelConfig: {
displayName: "标签配置",
show: true,
},
},
"markLineChildren.markLineBgConfig": {
markLineBgConfig: {
displayName: "标签背景",
show: true,
},
},
"markLineChildren.markLineSymbolStyle": {
markLineSymbolStyle: {
displayName: "标记图形",
show: true,
},
},
"markLineChildren.markLineStyle": {
markLineStyle: {
displayName: "标线样式",
show: true,
},
},
"markLineChildren.markLinePrefixStyle": {
markLinePrefixStyle: {
displayName: "前缀",
show: true,
},
},
"markLineChildren.markLineSuffixStyle": {
markLineSuffixStyle: {
displayName: "后缀",
show: true,
},
},
},
],
"cutsomLineDataChildren.cutsomLineDataSeries_group": {
cutsomLineDataSeries_group: {
displayName: "自定义系列",
show: true,
},
},
cutsomLineDataSeries: [
{
"cutsomseriesChildren.cutsomvalueLabel": {
cutsomvalueLabel: {
displayName: "数值标签",
show: true,
},
},
"cutsomseriesChildren.cutsomsymbolStyle": {
cutsomsymbolStyle: {
displayName: "标记图形",
show: true,
},
},
},
],
"cutsomBarDataChildren.cutsomBarDataSeries_group": {
cutsomBarDataSeries_group: {
displayName: "自定义系列",
show: true,
},
},
cutsomBarDataSeries: [
{
"cutsomseriesBarChildren.cutsomvalueLabel": {
cutsomvalueLabel: {
displayName: "数值标签",
show: true,
},
},
"cutsomseriesLabelPointShow_true_children.cutsomseriesLabelPoint": {
cutsomseriesLabelPoint: {
displayName: "标点",
show: true,
},
},
},
],
},
],
},
};
const seriesKey = (element, group) => {
return element.map((item, index) => {
let newGroup = {};
return Object.assign(dataKey(item), newGroup);
})
}
const dataKey = (data, gradient = true) => {
const newData = {};
for (const key in data) {
if (Object.prototype.hasOwnProperty.call(data, key)) {
const element = data[key];
if (key.includes(".")) {
let newEle = element;
if (gradient && element && element.type && element.type == "gradient") {
newEle = {
startVal: element.gradient.stops[0].color,
endVal: element.gradient.stops[1].color,
direction: element.gradient.angle,
};
}
newData[key.split(".")[1]] = newEle;
} else {
if (key != "root") {
newData[key] = seriesKey(element);
}
}
}
}
return newData;
};
const formatGroup = (group) => {
const newObj = {}
for (const key in group) {
const element = group[key];
if (Array.isArray(element) && element.length > 0) {
const list = []
element.map(item => {
if (formatGroup(item) && JSON.stringify(formatGroup(item)) != "{}") {
list.push(formatGroup(item))
}
})
newObj[key] = list
} else {
for (const key2 in element) {
const ele = element[key2];
if (Object.keys(ele).includes("icon")) {
newObj[key2] = ele.show
}
}
}
}
return newObj
}
const deepMerge = (target, source)=>{
for (const key in source) {
if (source[key] instanceof Object && key in target) {
deepMerge(target[key], source[key]);
} else {
target[key] = source[key];
}
}
}
const group1 = dataKey(result.group);//将key变成单个单词
const data = dataKey(result.data);//将key变成单个单词
const newGroupData = formatGroup(group1);//将group层级改变
deepMerge(data,newGroupData)
console.log(11,JSON.stringify(data))
console