Skip to content

Commit

Permalink
fix:修改axislineWidth,以及各个图表中的RNViewBase (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: hongtenglong <[email protected]>
Co-authored-by: hongtenglong <[email protected]>
  • Loading branch information
tenglonghh and hongtenglong authored Sep 23, 2024
1 parent ac51970 commit 94865b0
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion harmony/charts-wrapper/src/main/ets/AxisBase.ets
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const setAxis =
}

//设置图表周围边框的宽度,单位为vp。 axisLineWidth
if (xAxis instanceof XAxis && xAxis?.axisLineWidth != undefined) {
if (axis instanceof XAxis && xAxis?.axisLineWidth != undefined) {
axis?.setAxisLineWidth(xAxis?.axisLineWidth);
} else if (yAxisLeft?.axisLineWidth != undefined && isyAxis === 'yAxisLeft') {
axis?.setAxisLineWidth(yAxisLeft?.axisLineWidth);
Expand Down
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/BarCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ export struct BarCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
BarChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/BubbleCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ export struct BubbleCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
BubbleChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/CandleStickCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ export struct CandleStickCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
CandleStickChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/CombinedCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ export struct CombinedCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
CombinedChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/HorizontalBarCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ export struct HorizontalBarCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
HorizontalBarChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/LineCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ export struct LineCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
LineChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/PieCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ export struct PieCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
PieChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/RadarCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ export struct RadarCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
RadarChart({
model: this.model
})
}
}
}
2 changes: 0 additions & 2 deletions harmony/charts-wrapper/src/main/ets/ScatterCharts.ets
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ export struct ScatterCharts {
}

build() {
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
ScatterChart({
model: this.model
})
}
}
}

0 comments on commit 94865b0

Please sign in to comment.