![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
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. |
| Sponsored Links |
|
|||
|
"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 |
|
|||
|
[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); |
|
|||
|
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}"/> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise