Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8563350

Browse files
committed
Added dataZoom, grid to candleStick chart.
1 parentf421dd0 commit8563350

File tree

4 files changed

+43
-6
lines changed

4 files changed

+43
-6
lines changed

‎client/packages/lowcoder-comps/src/comps/candleStickChartComp/candleStickChartConstants.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ import {
1616
uiChildren,
1717
clickEvent,
1818
styleControl,
19-
EchartsStyle
19+
EchartDefaultChartStyle,
20+
EchartDefaultTextStyle
2021
}from"lowcoder-sdk";
2122
import{RecordConstructorToComp,RecordConstructorToView}from"lowcoder-core";
2223
import{BarChartConfig}from"../chartComp/chartConfigs/barChartConfig";
2324
import{XAxisConfig,YAxisConfig}from"../chartComp/chartConfigs/cartesianAxisConfig";
2425
import{LegendConfig}from"../chartComp/chartConfigs/legendConfig";
2526
import{EchartsLegendConfig}from"../chartComp/chartConfigs/echartsLegendConfig";
2627
import{EchartsLabelConfig}from"../chartComp/chartConfigs/echartsLabelConfig";
28+
import{EchartsTitleConfig}from"comps/chartComp/chartConfigs/echartsTitleConfig";
2729
import{LineChartConfig}from"../chartComp/chartConfigs/lineChartConfig";
2830
import{PieChartConfig}from"../chartComp/chartConfigs/pieChartConfig";
2931
import{ScatterChartConfig}from"../chartComp/chartConfigs/scatterChartConfig";
@@ -252,15 +254,25 @@ let chartJsonModeChildren: any = {
252254
echartsTitle:withDefault(StringControl,trans("candleStickChart.defaultTitle")),
253255
echartsLegendConfig:EchartsLegendConfig,
254256
echartsLabelConfig:EchartsLabelConfig,
257+
echartsTitleConfig:EchartsTitleConfig,
255258
echartsConfig:EchartsOptionComp,
256-
// style: styleControl(EchartsStyle, 'style'),
259+
left:withDefault(NumberControl,trans('candleStickChart.defaultLeft')),
260+
right:withDefault(NumberControl,trans('candleStickChart.defaultRight')),
261+
top:withDefault(NumberControl,trans('candleStickChart.defaultTop')),
262+
bottom:withDefault(NumberControl,trans('candleStickChart.defaultBottom')),
263+
dataZoomBottom:withDefault(NumberControl,trans('candleStickChart.defaultDataZoomBottom')),
264+
dataZoomHeight:withDefault(NumberControl,trans('candleStickChart.defaultDataZoomHeight')),
257265
tooltip:withDefault(BoolControl,true),
258266
legendVisibility:withDefault(BoolControl,true),
267+
dataZoomVisibility:withDefault(BoolControl,true),
259268
}
260269
if(EchartDefaultChartStyle&&EchartDefaultTextStyle){
261270
chartJsonModeChildren={
262271
...chartJsonModeChildren,
263-
style:styleControl(EchartsStyle,'style'),
272+
chartStyle:styleControl(EchartDefaultChartStyle,'chartStyle'),
273+
titleStyle:styleControl(EchartDefaultTextStyle,'titleStyle'),
274+
labelStyle:styleControl(EchartDefaultTextStyle,'labelStyle'),
275+
legendStyle:styleControl(EchartDefaultTextStyle,'legendStyle'),
264276
}
265277
}
266278

‎client/packages/lowcoder-comps/src/comps/candleStickChartComp/candleStickChartPropertyView.tsx

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,43 @@ export function candleStickChartPropertyView(
3131
</div>
3232
),
3333
})}
34+
{children.echartsTitleConfig.getPropertyView()}
35+
{children.left.propertyView({label:trans("candleStickChart.left")})}
36+
{children.right.propertyView({label:trans("candleStickChart.right")})}
37+
{children.top.propertyView({label:trans("candleStickChart.top")})}
38+
{children.bottom.propertyView({label:trans("candleStickChart.bottom")})}
39+
{children.legendVisibility.getView()&&children.echartsLegendConfig.getPropertyView()}
3440
{children.echartsTitle.propertyView({label:trans("candleStickChart.title")})}
41+
{children.dataZoomVisibility.getView()&&children.dataZoomHeight.propertyView({label:trans("candleStickChart.dataZoomHeight")})}
42+
{children.dataZoomVisibility.getView()&&children.dataZoomBottom.propertyView({label:trans("candleStickChart.dataZoomBottom")})}
3543
{children.tooltip.propertyView({label:trans("candleStickChart.tooltip")})}
44+
{children.legendVisibility.propertyView({label:trans("candleStickChart.legendVisibility")})}
45+
{children.dataZoomVisibility.propertyView({label:trans("candleStickChart.dataZoomVisibility")})}
3646
</Section>
3747
<Sectionname={sectionNames.interaction}>
3848
{children.onEvent.propertyView()}
3949
</Section>
4050
<Sectionname={sectionNames.style}>
4151
{children.style?.getPropertyView()}
4252
</Section>
43-
<Sectionname={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
53+
<Sectionname={sectionNames.layout}>{hiddenPropertyView(children)}
54+
</Section>
55+
56+
<Sectionname={sectionNames.chartStyle}>
57+
{children.chartStyle?.getPropertyView()}
58+
</Section>
59+
<Sectionname={sectionNames.titleStyle}>
60+
{children.titleStyle?.getPropertyView()}
61+
</Section>
62+
<Sectionname={sectionNames.labelStyle}>
63+
{children.labelStyle?.getPropertyView()}
64+
</Section>
65+
{
66+
children.legendVisibility.getView() ?
67+
<Sectionname={sectionNames.legendStyle}>
68+
{children.legendStyle?.getPropertyView()}
69+
</Section> :<></>
70+
}
4471
</>
4572
);
4673

‎client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartConstants.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
uiChildren,
1717
clickEvent,
1818
styleControl,
19-
EchartsStyle,
2019
EchartDefaultChartStyle,
2120
EchartDefaultTextStyle
2221
}from"lowcoder-sdk";

‎client/packages/lowcoder-comps/src/comps/gaugeChartComp/gaugeChartConstants.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
uiChildren,
1717
clickEvent,
1818
styleControl,
19-
EchartsStyle,
2019
EchartDefaultChartStyle,
2120
EchartDefaultTextStyle
2221
}from"lowcoder-sdk";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp