-
Notifications
You must be signed in to change notification settings - Fork 174
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
XS✔ ◾ 🚚 Migrated rule - Do you avoid using a single chart when you need it to be scaled? #8255
Merged
jeoffreyfischer
merged 6 commits into
main
from
migration---avoid-using-single-chart-when-scaled
Mar 26, 2024
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b449f88
Migrated rule
jeoffreyfischer fd3ed6d
Added rule in category
jeoffreyfischer 75b2fd2
Auto-fix Markdown files
github-actions[bot] 66e8e4d
Merge branch 'main' into migration---avoid-using-single-chart-when-sc…
jeoffreyfischer 96bb025
Added prefix
jeoffreyfischer 6b58c26
Merge branch 'main' into migration---avoid-using-single-chart-when-sc…
jeoffreyfischer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.67 KB
...-using-single-chart-when-scaled/RulesToBetterBusinessIntelligence_ChartBad1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10 KB
...-using-single-chart-when-scaled/RulesToBetterBusinessIntelligence_ChartBad2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
type: rule | ||
archivedreason: | ||
title: Do you avoid using a single chart when you need it to be scaled? | ||
guid: 85eec401-261c-4054-82eb-f73c9d951160 | ||
uri: avoid-using-single-chart-when-scaled | ||
created: 2023-12-11T14:38:33.0000000Z | ||
authors: | ||
- title: Jeoffrey Fischer | ||
url: https://ssw.com.au/people/jeoffrey-fischer | ||
related: | ||
- customization-do-you-know-which-version-of-sql-reporting-services-and-visual-studio-you-are-using | ||
redirects: [] | ||
|
||
--- | ||
|
||
<!--endintro--> | ||
|
||
::: bad | ||
![Figure: Bad example - Just a chart - poor scaling for only 1 record](RulesToBetterBusinessIntelligence_ChartBad1.gif) | ||
::: | ||
|
||
::: bad | ||
![Figure: Bad example - Just a chart - poorly scaling when many records](RulesToBetterBusinessIntelligence_ChartBad2.gif) | ||
::: | ||
|
||
The reason for this problem is that the 'size' property of the chart control doesn't support expressions like 'Count(Rows) or queried values like 'Fields!RowCount.Value', so the chart control cannot adjust its size according to the data. | ||
|
||
The solution for this problem is to use an embedded chart within the table - this will create a dynamic chart list similar to the list shown below. | ||
|
||
![Figure: Size property of the chart control](ChartProperties_size.jpg) | ||
|
||
::: good | ||
![Figure: Good example - A table with chart](RulesT12.gif) | ||
::: | ||
|
||
To do this, you need to create a table in your report and add a chart into each of the rows. | ||
|
||
![Figure: Embedded chart in a table will generate dynamic chart list](RulesToRS-chart-1.gif) | ||
|
||
**Note:** When rendering a report to your browser or an email, Reporting Services generates a separate image for every single image in the report, even if they are identical. When you are using graphs, images or charts in your report, this can cause a large number of images to be generated. Always include a red warning at the top of any emailed reports so that users do not try and forward or reply to them. Use a warning like this: | ||
|
||
<span style="color:red">**Warning:** Do not reply to or forward this report in an email - Outlook may slow down or even hang.</span> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if there is a better way to do this @tiagov8 @bradystroud
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed this with @adam and decided to leave the note - but happy to have other opinions.