Adobe Dreamweaver Forums



Last 10 THreads :         DW8 Activation not working (Last Post : moonliner - Replies : 0 - Views : 1 )           »          Creating a boundry in the stage... (Last Post : Rob Dillon - Replies : 1 - Views : 2 )           »          Re: Mouse capture won't activate (Last Post : robertnagle - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          How come the html is being displayed, and not the link (Last Post : Skaterstu - Replies : 0 - Views : 1 )           »          Another way to accomplish this (Last Post : Andy-K - Replies : 2 - Views : 3 )           »          HELP! Cannot upload files in DW CS4 (Last Post : dan@hoppernet.org - Replies : 6 - Views : 7 )           »          Adobe Flash 10 kills Wimpy (Last Post : m77ty8uu - Replies : 32 - Views : 208 )           »          How do I unlock all files in site at once (Last Post : Alan - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 09-06-2008, 12:58 AM
surleystare
 
Posts: n/a
Diggs:
Default Bar Height shrinks when adding a LineSeries

I have a BarChart that needs to have horizontal lines at two points on the
x-axis (like show "average score"). I accomplished this by adding a LineSeries
for each score. Each LineSeries has two points, with the x values identical,
and the y values set to min and max (thus creating a horizontal line).

The problem is that when I add the LineSeries the bar height gets reduced to
one third (as if there were two more BarSeries that neede to share the chart
item space. Does any one have any idea how I can prevent this? Or a better way
to accomplish adding my horizontal lines?

Furthermore, I have never been able to explicitly set the bar height. When I
do so it is always ignored.

Please see my examples:
http://i326.photobucket.com/albums/k...NewPicture.png
vs.
http://i326.photobucket.com/albums/k...ewPicture1.png

I've attached the MXML for the BarChart and my my HorizontalLineSeries
component.

Thank You :lips;




<mx:BarChart>
<mx:Script>
<![CDATA[
...yada, yada, yada...
]]>
</mx:Script>
<mx:horizontalAxis>
<mx:LinearAxis minimum="0" maximum="100" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:CategoryAxis id="catAxis" labelFunction="{categoryAxisLabel}"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries
fontWeight="bold"
labelAlign="right"
labelFunction="barSeriesPercentLabel"
labelPosition="inside"
xField="pctCS"
/>
<cmp:HorizontalLineSeries
strokeAlpha="{BLUE.alpha}"
strokeColor="{BLUE.color}"
strokeWeight="4"
xValue="{blueScore}"
/>
<cmp:HorizontalLineSeries
strokeAlpha="{GREEN.alpha}"
strokeColor="{GREEN.color}"
strokeWeight="4"
xValue="{greenScore}"
/>
</mx:series>
</mx:BarChart>


<mx:BarChart>
<mx:Script>
<![CDATA[
...yada, yada, yada...
]]>
</mx:Script>
<mx:horizontalAxis>
<mx:LinearAxis minimum="0" maximum="100" />
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:CategoryAxis id="catAxis" labelFunction="{categoryAxisLabel}"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries
fontWeight="bold"
labelAlign="right"
labelFunction="barSeriesPercentLabel"
labelPosition="inside"
xField="pctCS"
/>
<cmp:HorizontalLineSeries
strokeAlpha="{BLUE.alpha}"
strokeColor="{BLUE.color}"
strokeWeight="4"
xValue="{blueScore}"
/>
<cmp:HorizontalLineSeries
strokeAlpha="{GREEN.alpha}"
strokeColor="{GREEN.color}"
strokeWeight="4"
xValue="{greenScore}"
/>
</mx:series>
</mx:BarChart>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-06-2008, 04:44 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Bar Height shrinks when adding a LineSeries


"surleystare" <webforumsuser@macromedia.com> wrote in message
news:g9sfp4$d97$1@forums.macromedia.com...
>I have a BarChart that needs to have horizontal lines at two points on the
> x-axis (like show "average score"). I accomplished this by adding a
> LineSeries
> for each score. Each LineSeries has two points, with the x values
> identical,
> and the y values set to min and max (thus creating a horizontal line).
>
> The problem is that when I add the LineSeries the bar height gets reduced
> to
> one third (as if there were two more BarSeries that neede to share the
> chart
> item space. Does any one have any idea how I can prevent this? Or a better
> way
> to accomplish adding my horizontal lines?


http://www.quietlyscheming.com/blog/...custom-charts/


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk