Skip to content

[LTS] Charts to 9.24 #1576

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion packages/pluggableWidgets/area-chart-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [6.2.0] - 2025-06-03
### Changed

- We updated shared charts dependency.

## [6.1.0] - 2025-06-04

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/area-chart-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/area-chart-web",
"widgetName": "AreaChart",
"version": "6.2.0",
"version": "6.1.1",
"description": "An area chart displays a solid color between the traces of a graph.",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand All @@ -18,7 +18,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "9.6.0",
"minimumMXVersion": "9.24.0.2965",
"appName": "Area Chart"
},
"testProject": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/area-chart-web/src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="AreaChart" version="6.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="AreaChart" version="6.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="AreaChart.xml" />
</widgetFiles>
Expand Down
6 changes: 5 additions & 1 deletion packages/pluggableWidgets/bar-chart-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [6.2.0] - 2025-06-03
### Changed

- We updated shared charts dependency.

## [6.1.0] - 2025-06-04

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/bar-chart-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/bar-chart-web",
"widgetName": "BarChart",
"version": "6.2.0",
"version": "6.1.1",
"description": "Shows difference between the data points for one or more categories.",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand All @@ -18,7 +18,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "9.6.0",
"minimumMXVersion": "9.24.0.2965",
"appName": "Bar Chart"
},
"testProject": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/bar-chart-web/src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="BarChart" version="6.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="BarChart" version="6.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="BarChart.xml" />
</widgetFiles>
Expand Down
6 changes: 5 additions & 1 deletion packages/pluggableWidgets/bubble-chart-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [6.2.0] - 2025-06-03
### Changed

- We updated shared charts dependency.

## [6.1.0] - 2025-06-04

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/bubble-chart-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/bubble-chart-web",
"widgetName": "BubbleChart",
"version": "6.2.0",
"version": "6.1.1",
"description": "Shows data in a bubble format graph.",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand All @@ -18,7 +18,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "9.6.0",
"minimumMXVersion": "9.24.0.2965",
"appName": "Bubble Chart"
},
"testProject": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="BubbleChart" version="6.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="BubbleChart" version="6.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="BubbleChart.xml" />
</widgetFiles>
Expand Down
4 changes: 4 additions & 0 deletions packages/pluggableWidgets/chart-playground-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- We updated shared charts dependency.

## [2.0.0] - 2025-02-28

### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/chart-playground-web",
"widgetName": "ChartPlayground",
"version": "2.0.0",
"version": "2.0.1",
"description": "A small playground widget for charts",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="ChartPlayground" version="2.0.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="ChartPlayground" version="2.0.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="ChartPlayground.xml" />
</widgetFiles>
Expand Down
26 changes: 7 additions & 19 deletions packages/pluggableWidgets/charts-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,39 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [6.2.0] Charts - 2025-06-03
## [6.1.0] Charts - 2025-06-04

### [6.2.0] AreaChart
### [6.1.0] AreaChart

#### Fixed

- We fixed an issue with aggregate being removed on plotly 3.0

### [6.2.0] BarChart
### [6.1.0] BarChart

#### Fixed

- We fixed an issue with aggregate being removed on plotly 3.0

### [6.2.0] BubbleChart
### [6.1.0] BubbleChart

#### Fixed

- We fixed an issue with aggregate being removed on plotly 3.0

### [6.2.0] ColumnChart
### [6.1.0] ColumnChart

#### Fixed

- We fixed an issue with aggregate being removed on plotly 3.0

### [1.2.0] CustomChart
### [1.1.0] CustomChart

#### Changed

- We increase the version to update shared code.

### [6.2.0] LineChart

#### Fixed

- We fixed an issue with aggregate being removed on plotly 3.0

### [6.2.0] PieChart

#### Changed

- We increase the version to update shared code.

### [6.2.0] TimeSeries
### [6.1.0] TimeSeries

#### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/charts-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mendix/charts-web",
"version": "6.2.0",
"version": "6.1.1",
"description": "Chart widgets collection for data visualization",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "10.6.0.23934",
"minimumMXVersion": "9.24.0.2965",
"appNumber": 105695,
"appName": "Charts",
"reactReady": true
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/charts-web/src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="Charts" version="6.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="Charts" version="6.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="AreaChart/AreaChart.xml" />
<widgetFile path="BarChart/BarChart.xml" />
Expand Down
6 changes: 5 additions & 1 deletion packages/pluggableWidgets/column-chart-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [6.2.0] - 2025-06-03
### Changed

- We updated shared charts dependency.

## [6.1.0] - 2025-06-04

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/column-chart-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/column-chart-web",
"widgetName": "ColumnChart",
"version": "6.2.0",
"version": "6.1.1",
"description": "Shows data in a column format graph.",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand All @@ -18,7 +18,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "9.6.0",
"minimumMXVersion": "9.24.0.2965",
"appName": "Column Chart"
},
"testProject": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="ColumnChart" version="6.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="ColumnChart" version="6.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="ColumnChart.xml" />
</widgetFiles>
Expand Down
6 changes: 5 additions & 1 deletion packages/pluggableWidgets/custom-chart-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [1.2.0] - 2025-06-03
### Fixed

- We fixed an issue with incorrect parsing and merging of layout and data properties.

## [1.1.0] - 2025-06-04

### Changed

Expand Down
6 changes: 3 additions & 3 deletions packages/pluggableWidgets/custom-chart-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mendix/custom-chart-web",
"widgetName": "CustomChart",
"version": "1.2.0",
"version": "1.1.1",
"description": "",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand All @@ -20,7 +20,7 @@
},
"packagePath": "com.mendix.widget.web",
"marketplace": {
"minimumMXVersion": "10.16.0",
"minimumMXVersion": "9.24.0.2965",
"appNumber": 1234,
"appName": "Custom chart"
},
Expand All @@ -39,7 +39,7 @@
"publish-marketplace": "rui-publish-marketplace",
"release": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pluggable-widgets-tools release:web",
"start": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pluggable-widgets-tools start:server",
"test": "echo 'FIXME: Finish custom-chart-web unit test migration'",
"test": "pluggable-widgets-tools test:unit:web:enzyme-free",
"update-changelog": "rui-update-changelog-widget",
"verify": "rui-verify-package-format"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="CustomChart" version="1.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="CustomChart" version="1.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="CustomChart.xml" />
</widgetFiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { parseData, parseLayout, parseConfig } from "../utils/utils";

describe("parseData", () => {
it("returns empty array when all inputs are empty", () => {
expect(parseData()).toEqual([]);
});

it("parses staticData only", () => {
const staticData = JSON.stringify([{ x: [1], y: [2] }]);
expect(parseData(staticData)).toEqual([{ x: [1], y: [2] }]);
});

it("parses sampleData when attributeData and staticData are empty", () => {
const sampleData = JSON.stringify([{ x: [3], y: [4] }]);
expect(parseData(undefined, undefined, sampleData)).toEqual([{ x: [3], y: [4] }]);
});

it("parses attributeData and ignores sampleData if attributeData is present", () => {
const attributeData = JSON.stringify([{ x: [5], y: [6] }]);
const sampleData = JSON.stringify([{ x: [7], y: [8] }]);
expect(parseData(undefined, attributeData, sampleData)).toEqual([{ x: [5], y: [6] }]);
});
});

describe("parseLayout", () => {
it("returns empty object when all inputs are empty", () => {
expect(parseLayout()).toEqual({});
});

it("parses staticLayout only", () => {
const staticLayout = JSON.stringify({ title: "Test" });
expect(parseLayout(staticLayout)).toEqual({ title: "Test" });
});

it("parses sampleLayout when attributeLayout and staticLayout are empty", () => {
const sampleLayout = JSON.stringify({ title: "Sample" });
expect(parseLayout(undefined, undefined, sampleLayout)).toEqual({ title: "Sample" });
});

it("parses attributeLayout and ignores sampleLayout if attributeLayout is present", () => {
const attributeLayout = JSON.stringify({ title: "Attr" });
const sampleLayout = JSON.stringify({ title: "Sample" });
expect(parseLayout(undefined, attributeLayout, sampleLayout)).toEqual({ title: "Attr" });
});
});

describe("parseConfig", () => {
it("returns empty object when configOptions is empty", () => {
expect(parseConfig()).toEqual({});
});

it("parses configOptions", () => {
const configOptions = JSON.stringify({ responsive: true });
expect(parseConfig(configOptions)).toEqual({ responsive: true });
});
});
Loading