Skip to content

Commit 59764ca

Browse files
fix: chart render issue
1 parent 2fc092e commit 59764ca

8 files changed

Lines changed: 18 additions & 6 deletions

File tree

packages/pluggableWidgets/bar-chart-native/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- We have resolved an issue preventing Bar chart from rendering correctly.
12+
913
## [3.1.1] - 2025-3-18
1014

1115
### Fixed

packages/pluggableWidgets/bar-chart-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bar-chart-native",
33
"widgetName": "BarChart",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"repository": {

packages/pluggableWidgets/bar-chart-native/src/components/BarChart.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReactElement, useCallback, useMemo, useState } from "react";
22
import { LayoutChangeEvent, Text, View } from "react-native";
3-
import { VictoryAxis, VictoryBar, VictoryChart, VictoryGroup, VictoryStack } from "victory-native";
3+
import { VictoryAxis, VictoryBar, VictoryChart, VictoryGroup, VictoryLabel, VictoryStack } from "victory-native";
44
import { BarProps } from "victory-bar";
55
import { extractStyles } from "@mendix/pluggable-widgets-tools";
66

@@ -108,6 +108,7 @@ export function BarChart({
108108
horizontal
109109
key={index}
110110
data={dataPoints}
111+
labelComponent={<VictoryLabel />}
111112
width={barStyles.width}
112113
cornerRadius={barStyles.cornerRadius}
113114
style={{
@@ -226,12 +227,14 @@ export function BarChart({
226227
<VictoryAxis
227228
orientation={"bottom"}
228229
dependentAxis
230+
tickLabelComponent={<VictoryLabel />}
229231
style={mapToAxisStyle(style.grid, style.xAxis)}
230232
{...(firstSeries?.xFormatter
231233
? { tickFormat: firstSeries.xFormatter }
232234
: undefined)}
233235
/>
234236
<VictoryAxis
237+
tickLabelComponent={<VictoryLabel />}
235238
style={mapToAxisStyle(style.grid, style.yAxis)}
236239
orientation={"left"}
237240
{...(firstSeries?.yFormatter

packages/pluggableWidgets/bar-chart-native/src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="BarChart" version="3.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="BarChart" version="3.2.1" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="BarChart.xml" />
66
</widgetFiles>

packages/pluggableWidgets/column-chart-native/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- We have resolved an issue preventing Column chart from rendering correctly
12+
913
## [2.1.1] - 2025-3-18
1014

1115
### Fixed

packages/pluggableWidgets/column-chart-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "column-chart-native",
33
"widgetName": "ColumnChart",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"repository": {

packages/pluggableWidgets/column-chart-native/src/components/ColumnChart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReactElement, useCallback, useMemo, useState } from "react";
22
import { LayoutChangeEvent, Text, TextStyle, View } from "react-native";
3-
import { VictoryAxis, VictoryBar, VictoryChart, VictoryGroup, VictoryStack } from "victory-native";
3+
import { VictoryAxis, VictoryBar, VictoryChart, VictoryGroup, VictoryLabel, VictoryStack } from "victory-native";
44
import { BarProps } from "victory-bar";
55
import { extractStyles } from "@mendix/pluggable-widgets-tools";
66

@@ -114,6 +114,7 @@ export function ColumnChart({
114114
<VictoryBar
115115
key={index}
116116
data={dataPoints}
117+
labelComponent={<VictoryLabel />}
117118
width={columnStyles.width}
118119
cornerRadius={columnStyles.cornerRadius}
119120
style={{

packages/pluggableWidgets/column-chart-native/src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="ColumnChart" version="2.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="ColumnChart" version="2.2.1" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="ColumnChart.xml" />
66
</widgetFiles>

0 commit comments

Comments
 (0)