Showing posts with label area. Show all posts
Showing posts with label area. Show all posts

Wednesday, March 7, 2012

Charts, aligning plot area vertically

Say you have a few charts which you want to align vertically. Both left and
right side of the charts should be at same vertical position. This is
especially important if you have same measurement and scale for the x-axis
for two charts and want to compare values across two diagrams. I have not
found a way to get vertical aligment (yet).
The area for the plot area seems to be determined by the text size needed to
print the y-axis labels. And this is of course dependent on the actual data.
Apparently, the chart component is licensed from www.dundas.com. On that
site, I found a white paper suggesting you can do this using an
AlignWithChartArea property. However, I can't find such in RD. Am I correct
in assuming that this feature is missing from RD?
Any ideas on how to accomplish this?
TIA
Tibor Karaszi
SQL Server MVPYou could make the charts the same size and do the alignment using Layout
toolbar in the Designer (Align Left/Align Right toolbuttons.)
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uzkCwqaiEHA.2848@.TK2MSFTNGP10.phx.gbl...
> Say you have a few charts which you want to align vertically. Both left
and
> right side of the charts should be at same vertical position. This is
> especially important if you have same measurement and scale for the x-axis
> for two charts and want to compare values across two diagrams. I have not
> found a way to get vertical aligment (yet).
> The area for the plot area seems to be determined by the text size needed
to
> print the y-axis labels. And this is of course dependent on the actual
data.
> Apparently, the chart component is licensed from www.dundas.com. On that
> site, I found a white paper suggesting you can do this using an
> AlignWithChartArea property. However, I can't find such in RD. Am I
correct
> in assuming that this feature is missing from RD?
> Any ideas on how to accomplish this?
> TIA
> Tibor Karaszi
> SQL Server MVP
>|||Yes, but unfortunately this applies to the control per se. I.e., the Chart Area. What I need to be aligned is
the *Plot Area*.
The size of the plot area seem to be dynamically adjusted based on the text to fill in to the left/right of
the diagram (the part which is in the Chart Area but isn't the Plot Area). This text is drawn from the data,
so I cannot know in advance how long strings it will be.
(This is so I can match scales (vertical lines) across several diagrams.)
Thanks
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Ravi Mumulla (Microsoft)" <ravimu@.online.microsoft.com> wrote in message
news:%23f0aB%23eiEHA.2340@.TK2MSFTNGP11.phx.gbl...
> You could make the charts the same size and do the alignment using Layout
> toolbar in the Designer (Align Left/Align Right toolbuttons.)
> --
> Ravi Mumulla (Microsoft)
> SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:uzkCwqaiEHA.2848@.TK2MSFTNGP10.phx.gbl...
> > Say you have a few charts which you want to align vertically. Both left
> and
> > right side of the charts should be at same vertical position. This is
> > especially important if you have same measurement and scale for the x-axis
> > for two charts and want to compare values across two diagrams. I have not
> > found a way to get vertical aligment (yet).
> >
> > The area for the plot area seems to be determined by the text size needed
> to
> > print the y-axis labels. And this is of course dependent on the actual
> data.
> >
> > Apparently, the chart component is licensed from www.dundas.com. On that
> > site, I found a white paper suggesting you can do this using an
> > AlignWithChartArea property. However, I can't find such in RD. Am I
> correct
> > in assuming that this feature is missing from RD?
> >
> > Any ideas on how to accomplish this?
> >
> > TIA
> > Tibor Karaszi
> > SQL Server MVP
> >
> >
>

Saturday, February 25, 2012

Charting...

I'll be quick and too the point...
1: I have a stacked area chart.
2: Percentages are the values being marked.
Issue:
I need to make the 100 mark (text and line) on the y-axis to be red.
I've tried writing an expression to get at the current "label" for the
mark. I keep getting the following error:
<<
The border color expression for the chart 'Sample' contains an
error: [BC30456] 'value' is not a member of
'ReportExprHostImpl.EH_Sample.EH_ValueAxis'.
>>
Here's what I have: '=iif(me.Value,"Black", "Red")'
I've also tried .Text and .Label.
Any help would be appreciated.I gave you incomplete code. Here is what I currently have.
Here's what I have: '=iif(me.Value <> "100","Black", "Red")'|||Sorry, the color of the axis is not an expression.
--
Brian Welcker
Group Program Manager
Microsoft SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
"Stu" <stumiller@.unforgettable.com> wrote in message
news:1104275769.160878.21860@.z14g2000cwz.googlegroups.com...
>I gave you incomplete code. Here is what I currently have.
> Here's what I have: '=iif(me.Value <> "100","Black", "Red")'
>|||Brian Welcker [MS] wrote:
> Sorry, the color of the axis is not an expression.
> --
> Brian Welcker
> Group Program Manager
> Microsoft SQL Server
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Stu" <stumiller@.unforgettable.com> wrote in message
> news:1104275769.160878.21860@.z14g2000cwz.googlegroups.com...
> >I gave you incomplete code. Here is what I currently have.
> > Here's what I have: '=iif(me.Value <> "100","Black", "Red")'
> >
Brian,
Thanks for responding...
So, just to make sure I understand what your saying... there is no way
to get the "value" or "text" of an axis and change the style of that
axis based upon that value?
The reason I "ask" it again this way is that I am able to change the
color of the line and text with this statement:
'=iif(InScope("100"),"Black", "Red")'
Ofcourse, "100" is not within the scope of the data and all the lines
turn "Red" but the point being, I can change the style in the
expression. I'm just asking is there a way to determine what axis your
on.
Thanks|||Yes, lines are data so you can set their color to an expression. Axis values
aren't data so expressions don't really make any sense (we can't iterate
through all possible values). We would have to add an 'Axis value color'
property to the data point.
--
Brian Welcker
Group Program Manager
Microsoft SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
"Stu" <stumiller@.unforgettable.com> wrote in message
news:1104349698.883859.301160@.c13g2000cwb.googlegroups.com...
> Brian Welcker [MS] wrote:
>> Sorry, the color of the axis is not an expression.
>> --
>> Brian Welcker
>> Group Program Manager
>> Microsoft SQL Server
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>> "Stu" <stumiller@.unforgettable.com> wrote in message
>> news:1104275769.160878.21860@.z14g2000cwz.googlegroups.com...
>> >I gave you incomplete code. Here is what I currently have.
>> > Here's what I have: '=iif(me.Value <> "100","Black", "Red")'
>> >
> Brian,
> Thanks for responding...
> So, just to make sure I understand what your saying... there is no way
> to get the "value" or "text" of an axis and change the style of that
> axis based upon that value?
> The reason I "ask" it again this way is that I am able to change the
> color of the line and text with this statement:
> '=iif(InScope("100"),"Black", "Red")'
> Ofcourse, "100" is not within the scope of the data and all the lines
> turn "Red" but the point being, I can change the style in the
> expression. I'm just asking is there a way to determine what axis your
> on.
> Thanks
>