Adobe Dreamweaver Forums



Last 10 THreads :         uploading site (Last Post : hrggroup - Replies : 13 - Views : 14 )           »          static sound (Last Post : kglad - Replies : 11 - Views : 12 )           »          Code that can effect two movie clips (Last Post : Alessandroy - Replies : 2 - Views : 3 )           »          load xml into mc symbols (Last Post : kglad - Replies : 1 - Views : 2 )           »          Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 83 - Views : 955 )           »          Create 2nd animation in same flash file (Last Post : dabooj - Replies : 0 - Views : 1 )           »          Local host and php Solutions help... (Last Post : RJweb - Replies : 1 - Views : 6 )           »          problems linking PDFs (Last Post : Alan - Replies : 3 - Views : 4 )           »          Flash movie not working in html (Last Post : WEBDavid - Replies : 0 - Views : 1 )           »          drop down menu over flash (Last Post : ltartisel - Replies : 2 - Views : 3 )           »         


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 11-21-2008, 03:24 PM
air.NET
 
Posts: n/a
Diggs:
Default Multiple LinearAxis in LineChart

Hi all!

I have LineChart where I have 5 LineSeries. Now two of the LineSeries needs
own LinearAxis. Is it possible and how? I've seen only examples where is
pointed out how to make different verticalAxis when there's mixed ColumnChart
and LineChart, but not example where would be different verticalAxis for
different LineSeries.

Any help would be appreciated.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008, 04:42 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Multiple LinearAxis in LineChart


"air.NET" <webforumsuser@macromedia.com> wrote in message
news:gg6jk0$21$1@forums.macromedia.com...
> Hi all!
>
> I have LineChart where I have 5 LineSeries. Now two of the LineSeries
> needs
> own LinearAxis. Is it possible and how? I've seen only examples where is
> pointed out how to make different verticalAxis when there's mixed
> ColumnChart
> and LineChart, but not example where would be different verticalAxis for
> different LineSeries.
>
> Any help would be appreciated.
>


http://www.magnoliamultimedia.com/Ch...rtExample.html


Reply With Quote
  #3 (permalink)  
Old 11-24-2008, 08:16 AM
air.NET
 
Posts: n/a
Diggs:
Default Re: Multiple LinearAxis in LineChart

[Q]http://www.magnoliamultimedia.com/ChartExample/Cha rtExample.html [/Q]?

Thanks, this explains a bit. But my problem is now, that I want three
LineSeries to use one verticalAxis and two LineSeries to use another
verticalAxis. Now with example what you sent, I get verticalAxis for every
LineSeries. This is what I've tried now, but it's giving error: TypeError:
Error #1006: setActualSize is not a function.

var renderers:Array=new Array();

var la1:LinearAxis = new LinearAxis();
lineSeries1.verticalAxis = la1;
lineSeries2.verticalAxis = la1;
lineSeries3.verticalAxis = la1;

var ar1:AxisRenderer = new AxisRenderer();
ar1.axis = la1;
ar1.placement = "right";?
renderers.push(ar1);

var la2:LinearAxis = new LinearAxis();
lineSeries4.verticalAxis = la2;
lineSeries5.verticalAxis = la2;

var ar2:AxisRenderer=new AxisRenderer();
ar2.axis=la2;
ar2.placement = "left";
renderers.push(ar2);

lineChart.verticalAxisRenderers.push(renderers);

Reply With Quote


  #4 (permalink)  
Old 11-24-2008, 08:43 AM
air.NET
 
Posts: n/a
Diggs:
Default Re: Multiple LinearAxis in LineChart

Hi all, the answer was easier than I thought. I had to put one verticalAxis to
lineSeries4 and then set verticalAxis property of lineSeries5 to the same
verticalAxis. Like this:

<mx:LineSeries id="lineSeries4">
<mx:verticalAxis>
<mx:LinearAxis id="la1" />
</mx:verticalAxis>
</mx:LineSeries>
<mx:LineSeries id="lineSeries5" verticalAxis="{la1}"/>

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 01:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk