Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions packages/pluggableWidgets/custom-chart-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 changed the event data to return more properties instead of only bbox coordinates.

## [1.2.2] - 2025-09-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion 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.2",
"version": "1.2.3",
"description": "Create customizable charts with Plotly.js for advanced visualization needs",
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,21 @@ export class ChartPropsController implements ReactiveController {

private get chartOnClick(): (data: any) => void {
return (data: any): void => {
if (this.props.eventDataAttribute) {
this.props.eventDataAttribute.setValue(JSON.stringify(data.points[0].bbox));
if (this.props.eventDataAttribute && data.points && data.points.length > 0) {
const point = data.points[0];
const eventData = {
curveNumber: point.curveNumber,
pointNumber: point.pointNumber,
pointIndex: point.pointIndex,
x: point.x,
y: point.y,
z: point.z, // for 3D charts
text: point.text,
hovertext: point.hovertext,
customdata: point.customdata,
bbox: point.bbox
};
this.props.eventDataAttribute.setValue(JSON.stringify(eventData));
}
executeAction(this.props.onClick);
};
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.2" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="CustomChart" version="1.2.3" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="CustomChart.xml" />
</widgetFiles>
Expand Down
Loading