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

26841 Update Sample Bar Chart to support high contrast mode #40

Merged
merged 1 commit into from
Jul 2, 2018
Merged

26841 Update Sample Bar Chart to support high contrast mode #40

merged 1 commit into from
Jul 2, 2018

Conversation

ignatvilesov
Copy link
Contributor

No description provided.

dist
.api
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for cleanup and adding this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😄


barChartDataPoints.push({
category: category.values[i] + '',
color,
strokeColor,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use thicker strokes for high-contrast mode (native visuals use stroke-width 2)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

src/barChart.ts Outdated
: null;
}

function getAxisTextFillColor(
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't spot the bug here, but when testing the visual, axis text is always black, it should be foreground color.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done. Issue was related to applying color instead of fill

src/barChart.ts Outdated
})
.style('fill-opacity', viewModel.settings.generalView.opacity / 100);
.style({
'fill-opacity': viewModel.settings.generalView.opacity / 100,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add stroke opacity for highlight indication in high-contrast mode (native use stroke-opacity 0.4)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done. Thanks for your notes.

@Guy-Moses Guy-Moses merged commit 61011c8 into microsoft:master Jul 2, 2018
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.

3 participants