sivatech001 Report post Posted November 15, 2008 Hi, I have implemented (AngularGauge.swf) in my application. It showing big size in my application, I want to reduce the size as much as possible as I like. So where can I change the code so that can reduce size as much as possible. Please see below my code for more information. code snopshot <Chart bgColor="AEC0CA,FFFFFF" fillAngle="45" upperLimit="1250" lowerLimit="-1250" majorTMNumber="6" majorTMHeight="8" showGaugeBorder="0" gaugeOuterRadius="140" gaugeOriginX="205" gaugeOriginY="206" gaugeInnerRadius="2" formatNumberScale="0" displayValueDistance="30" tickMarkDecimalPrecision="1" pivotRadius="17" showPivotBorder="1" pivotBorderColor="000000" pivotBorderThickness="5" pivotFillMix="FFFFFF,000000"> <colorRange> <color minValue="-1250" maxValue="-750" code="#FF0000" /> <color minValue="-750" maxValue="-250" code="#FBB117" /> <color minValue="-250" maxValue="250" code="#5FFB17" /> <color minValue="250" maxValue="750" code="#FBB117" /> <color minValue="750" maxValue="1250" code="#FF0000" /> </colorRange> <dials> <dial value='$weightlossAvg' borderAlpha="0" bgColor="000000" baseWidth="28" topWidth="1" radius="130" toolText='$suggest'/> </dials> <annotations> <annotationGroup xPos="205" yPos="207.5"> <annotation type="circle" xPos="0" yPos="2.5" radius="150" startAngle="0" endAngle="180" fillPattern="linear" fillAsGradient="1" fillColor="dddddd,666666" fillAlpha="100,100" fillRatio="50,50" fillDegree="0" showBorder="1" borderColor="444444" borderThickness="2" /> <annotation type="circle" xPos="0" yPos="0" radius="145" startAngle="0" endAngle="180" fillPattern="linear" fillAsGradient="1" fillColor="666666,ffffff" fillAlpha="100,100" fillRatio="50,50" fillDegree="0" /> </annotationGroup> </annotations> </Chart> ------------------------------------------------------------------------------- 2. Also I used MSColumn3D.swf chart. When it shows depends on size the width of the bar size is showing right. I want to show whatever the width the bar should be lean (just like line). When I use this chart, I show name like protien 60% in that case 'pr' will print first line and 'ot' will print second line and so on in the single bar(ie, harizantally disaplying). I need the food name shoud display vertically(ie, protein and corresponding bar). Thanks, siva Share this post Link to post Share on other sites
Arindam Report post Posted November 15, 2008 (edited) Hi, Could you please use autoScale='1' origW='400' origH='200' with in chart and annotations section? please see the XML bellow <Chart bgColor="AEC0CA,FFFFFF" fillAngle="45" upperLimit="1250" lowerLimit="-1250" majorTMNumber="6" majorTMHeight="8" showGaugeBorder="0" gaugeOuterRadius="140" gaugeOriginX="205" gaugeOriginY="206" gaugeInnerRadius="2" formatNumberScale="0" displayValueDistance="30" tickMarkDecimalPrecision="1" pivotRadius="17" showPivotBorder="1" pivotBorderColor="000000" pivotBorderThickness="5" pivotFillMix="FFFFFF,000000" autoScale='1' origW='400' origH='200' > <colorRange> <color minValue="-1250" maxValue="-750" code="FF0000" /> <color minValue="-750" maxValue="-250" code="FBB117" /> <color minValue="-250" maxValue="250" code="5FFB17" /> <color minValue="250" maxValue="750" code="FBB117" /> <color minValue="750" maxValue="1250" code="FF0000" /> </colorRange> <dials> <dial value='$weightlossAvg' borderAlpha="0" bgColor="000000" baseWidth="28" topWidth="1" radius="130" toolText='$suggest'/> </dials> <annotations autoScale='1' origW='400' origH='200'> <annotationGroup xPos="205" yPos="207.5"> <annotation type="circle" xPos="0" yPos="2.5" radius="150" startAngle="0" endAngle="180" fillPattern="linear" fillAsGradient="1" fillColor="dddddd,666666" fillAlpha="100,100" fillRatio="50,50" fillDegree="0" showBorder="1" borderColor="444444" borderThickness="2" /> <annotation type="circle" xPos="0" yPos="0" radius="145" startAngle="0" endAngle="180" fillPattern="linear" fillAsGradient="1" fillColor="666666,ffffff" fillAlpha="100,100" fillRatio="50,50" fillDegree="0" /> </annotationGroup> </annotations> </Chart> 2) Could you please use Mscolumn3D chart level attribute plotSpacePercent='20'? i.e <chart ...... plotSpacePercent='20' .......> plotSpacePercent Number 0-80 (In Percent) On a column chart, there is spacing defined between two columns. By default, the spacing is set to 20% of canvas width. If you intend to increase or decrease the spacing between columns, you can do so using this attribute. For example, if you wanted all columns to stick to each other without any space in between, you can set plotSpacePercent to 0. Similarly, if you want very thin columns, you can set plotSpacePercent to its max value of 80. Edited November 15, 2008 by Guest Share this post Link to post Share on other sites
sivatech001 Report post Posted November 15, 2008 Hi, I asked regarding 3d bar chart shows just like thick. I want to show just like stick. I used your request like plotSpacePercent='50%' and plotSpacePercent='10%' . There is no change in my chart. Please find below code for more information. <chart yAxisMinValue="0" yAxisMaxValue="100" formatNumber="0" bgColor="f7f2f7" formatNumberScale="0" numDivLines="1" legendBorderAlpha="0" useRoundEdges="1" showvalues="0" numberSuffix = '%' shownames="1" palette="5" plotSpacePercent='50%' labelDisplay='Rotate' slantLabels='1' setAdaptiveYMin='10%'> <categories plotSpacePercent='50%'> #foreach( $categorylist in $macrocategory ) <category name='$categorylist' /> #end </categories> <dataset color='AFD8F8' showValues='1' plotSpacePercent='50%'> <set value='$carb_pecent' color="008E8E" /> <set value='$prot_percent' color="8BBA00" /> <set value='$fat_percent' color="FF8E46" /> </dataset> </chart> Share this post Link to post Share on other sites
Arindam Report post Posted November 16, 2008 (edited) Hi, Please do not use the % sign in. Please see the example. <chart yAxisMinValue="0" yAxisMaxValue="100" formatNumber="0" bgColor="f7f2f7" formatNumberScale="0" numDivLines="1" legendBorderAlpha="0" useRoundEdges="1" showvalues="0" numberSuffix = '%25' shownames="1" palette="5" plotSpacePercent='50' labelDisplay='Rotate' slantLabels='1' setAdaptiveYMin='10'> <categories> #foreach( $categorylist in $macrocategory ) <category name='$categorylist' /> #end </categories> <dataset color='AFD8F8' showValues='1' > <set value='$carb_pecent' color="008E8E" /> <set value='$prot_percent' color="8BBA00" /> <set value='$fat_percent' color="FF8E46" /> </dataset> </chart> Edited November 25, 2008 by Guest Share this post Link to post Share on other sites