• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

Showing 2 graph types in one rdl

Hi experts!

I have a report that needs to contain a graph along with a table underneath showing the dataset values. I am required to either render the graph portion as a bar graph or a line graph depending on a parameter that is passed into the report. The dataset remains the same for either graph.
Do I simply drag 2 graphs onto the designer (1 bar graph type and 1 line graph type) and simply hide 1 or the other based on the parameter? Or is there another more clever way to do this dynamically?

I only want to show either the bar graph or the line graph but not both at the same time.

Thanks.
0
maloriopolium
Asked:
maloriopolium
  • 4
1 Solution
 
itcoupleCommented:
Yes

Hide/Show usually is the approach to do that. But also look for properties which specify bar/line to see if you can set it up conditionally. I'm just going to see if there is one.

Regards
Emil
0
 
itcoupleCommented:
The property is called Type.... but doesn't allow expressions :(

Regards
Emil
0
 
itcoupleCommented:
Another option is to add graph/line on the same graph (literally) and use visibility to hide/show but I'm not sure how the Axis would behave in that case.

Regards
Emil
0
 
maloriopoliumAuthor Commented:
Hi itcouple,

What do you mean by the property called Type? Where is this?
0
 
itcoupleCommented:
Hi

If you click the bar or line or point on the graph and go to properties pane (F4) - at least that is where I find it in R2. There is property called type, but it will not help as you cannot use expressions in it. What a shame.

Regards
Emil
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now