Skip to content
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

Check for old enums value like "Horizontal Left" with space #110

Merged
merged 6 commits into from
Apr 26, 2024

Conversation

adiletelf
Copy link
Contributor

It's done to maintain a backwards compatibility

src/visual.ts Outdated
@@ -655,6 +656,26 @@ export class BulletChart implements IVisual {
return null;
}

// Implemented for old enums using space containing keys for example "Horizontal Left" which doesn't exist in current version
private static updateOrientation(settings: BulletChartSettingsModel, dataView: DataView): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't mutate args in a static function
give this function a return type or make it not static

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in a089cf8

@MulyukovAidar MulyukovAidar merged commit 0e1bc90 into microsoft:dev Apr 26, 2024
4 checks passed
MulyukovAidar added a commit that referenced this pull request Jun 14, 2024
* Add keyboard navigation support, update packages (#100)

* Migrate from tslint to eslint

* Update powerbi packages and API to 5.4.0

* Migrate from puppeteer to playwright

* Add BulletChartSettingsModel with new formatting api

* Migrate to BulletChartSettingModel

* Fix tooltip rendering

* Split d3 into submodules

* Add settings to sync axis

Previously each bar had its own axis, which made it difficult to compare them.

* Add settings to show only main axis

When enabling "sync axis" bars are resized to the same range, but it still shows axis for each bar. The new toggle "showMainAxis" shows only the first axis.

* Add keyboard navigation support

* Remove azure-pipelines.yml. Update build.yml to use node 18, 20

* Rename static methods to use snake_case

* Remove the line alongside axis colors.

When displaying units colors there is unnecessary line with axis color, which makes it harder to read. Remove it for better readability.

* Move main axis to bottom when Horizontal orientation is set.

Main axis should be at the bottom, instead of at the top.

* Move "syncAxis", "showMainAxis" to dedicated card in formatting pane.

* Update build.yml to run pipeline on 'dev' branch. Remove .travis.yml

* Prettify SyncAxis Card in formatting pane

* Add "Visual_Long_Description", "Visual_Short_Description" localization keys

* Fix not showing scroll when changing orientation from Vertical to Horizontal and vise versa

* Update packages

* Set powerbi-visuals-api version in pbiviz.json to 5.7.0

* Remove test which checks the color of the line on axis (the line is removed)

* Refactor methods to make them below 100 lines

* Remove core-js

* Update build.yml to run pipeline on 'certification' branch

* Refactor CALCULATE_RANGE_VALUE_BASED_ON_PERCENTAGE method and add tests

* Refactor keyboard navigation: focus goes from whole bars instead of bullets

* Add OnObject functionality (#102)

* Add OnObject for "Category labels"

* Add OnObject for axis formatting

* Add OnObject for "colors" formatting settings

* Enable subselection for "Bullet" rects

* Remove repeating "displayName", "displayNameKey" from capabilities.json

* Move OnObject references to formatting model

* Fix tests checking measureUnits value and color

* Update packages and version to 2.4.1.0

* Remove redundant dependency 'coveralls'

* Check for old enums value like "Horizontal Left" with space (#110)

* Check for old enums value like "Horizontal Left" with space to maintain backwards compatibility

* Refactor static methods into instance methods

* Fix npm vulnerabilities

* Update outdated packages

* Update API to 5.9.0

* Sync package-lock.json with package.json

* New translations (#114)

---------

Co-authored-by: adiletelf <[email protected]>
Co-authored-by: pbicvloc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants