Sign in to follow this  
Pallav

Swapping Primary and Secondary Y axis data

Recommended Posts

Hi,

 I am using the Multi-series Stacked 2D Line Dual Y Combination Chart. Dual Y axis. Lineset Values I specified were displayed as Secondary Y axis and the dataset Values I specified were displayed as Primary Y axis. I need to interchange the data values for Primary and Secondary Y axis. I wanted the Lineset data in Primary Y axis and viceversa.

Thanks in Advance

Following is the code used

<?xml version="1.0"?>
 <graph  PYaxisname="Hrs" SYAxisName="Qty" decimals="0" setAdaptiveSYMin="1" showPlotBorder="1"  bgColor="#FFFFFF" showBorder='0' showLegend="0" labelDisplay="None" chartBottomMargin="0" drawAnchors="0" numVDivLines="10" vDivLineIsDashed="1" vDivLineDashLen="2" vDivLineDashGap="2" PYAxisMaxValue="1800" showShadow="0" formatNumberScale="0" formatNumber="0">
 <categories font="Arial" fontSize="12" fontColor="000000">
  <category label="02.01.2006" showName="0"/> 
  <vLine color='999999' thickness='2' alpha='60' dashed='1' dashLen='5' dashGap='4'/>
  <category label="09.01.2006" showName="0"/> 
  <vLine color='999999' thickness='2' alpha='60' dashed='1' dashLen='5' dashGap='4'/>
  <category label="16.01.2006" showName="0"/> 
  <vLine color='999999' thickness='2' alpha='60' dashed='1' dashLen='5' dashGap='4'/>
  <category label="23.01.2006" showName="0"/> 
  <vLine color='999999' thickness='2' alpha='60' dashed='1' dashLen='5' dashGap='4'/>
  <category label="30.01.2006" showName="0"/> 
  </categories>
  <dataSet parentYAxis="P">
  <dataset seriesName="1" color="663300" showValues="1" columnwidth="1" >
  <set value="150" /> 
  <set value="0" /> 
  <set value="0" /> 
  <set value="0" /> 
  <set value="0" /> 
  </dataset>
  <dataset  seriesName="2" color="FFCC00" showValues="1">
  <set value="900" /> 
  <set value="300" /> 
  <set value="0" /> 
  <set value="0" /> 
  <set value="0" /> 
  </dataset>
 <dataset seriesName="3" color="99CCFF" showValues="1">
  <set value="0" /> 
  <set value="900" /> 
  <set value="400" /> 
  <set value="200" /> 
  <set value="0" /> 
  </dataset>
 <dataset seriesName="4" color="C8C8C8" showValues="1">
  <set value="0" /> 
  <set value="200" /> 
  <set value="1400" /> 
  <set value="1400" /> 
  <set value="850" /> 
  </dataset>
 <dataset seriesName="5" color="E0FFFF" showValues="1">
  <set value="900" /> 
  <set value="1400" /> 
  <set value="1800" /> 
  <set value="1600" /> 
  <set value="850" /> 
  </dataset>
  </dataSet>
  <lineSet name="1" showValues="0" color="9ACD32" lineThickness="1" parentYAxis="S">
  <set value="20000" /> 
  <set value="60000" /> 
  <set value="120000" /> 
  <set value="40000" /> 
  <set value="20000" /> 
  </lineSet>
 <lineSet name="2" showValues="0" color="4169E1" lineThickness="0" parentYAxis="S">
  <set value="60000" /> 
  <set value="60000" /> 
  <set value="20000" /> 
  <set value="60000" /> 
  <set value="40000" /> 
  </lineSet>
 <lineSet name="3" showValues="0" color="E80000" lineThickness="0" parentYAxis="S">
  <set value="80000" /> 
  <set value="120000" /> 
  <set value="140000" /> 
  <set value="10000" /> 
  <set value="60000" /> 
  </lineSet>
  <trendlines>
  <line startValue="1488" endValue="1488" displayValue="Capacity" showOnTop="1" dashed="1" color="E80000" valueOnRight="1"/>
  </trendlines>
  </graph>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this