Skip to content

Commit

Permalink
Merge branch 'pr/1729' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Feb 8, 2025
2 parents 1422635 + cb06508 commit c3baee4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Default Promotion to Queen in Chess Activity #1704
- Error loading Etoys activity #1717
- Cheating in Abecedarium Activity #1720
- X and Y axis labels are not Interchanged when switching between Vertical and Horizontal Bar Charts #1727

## [1.8.0] - 2024-04-10
### Added
Expand Down
9 changes: 9 additions & 0 deletions activities/Chart.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,15 @@ const app = new Vue({
});
},
setChartType(type) {

if ((this.pref.chartType === "bar" && type === "horizontalBar") ||
(this.pref.chartType === "horizontalBar" && type === "bar")) {

const tempLabel = this.pref.labels.x;
this.pref.labels.x = this.pref.labels.y;
this.pref.labels.y = tempLabel;
}

this.executeAndSendAction(Action_Types.UPDATE_CHART_TYPE, {
chartType: type,
});
Expand Down

0 comments on commit c3baee4

Please sign in to comment.