Hi,
i am using web charts in my ColdFusion (server side application).so
i have used below code for 3d bar Chart.but my requirement like i have to show a simple 2D Chart
Code:
<cfsavecontent variable="BarStackedOnco">
<cfoutput>
<frameChart font="Verdana-10">
  <frame xDepth="12" yDepth="11" outline="black" wallColor="null" isHStripVisible="true"/>
  <xAxis>
    <labelStyle  color="black" orientation="Slanted" />
	<titleStyle font="verdana-10" />
  </xAxis>
  <yAxis scaleMin="0">
    <labelStyle orientation="Slanted" color="black"/>
    <titleStyle font="verdana-10" isMultiline="false"/>
  </yAxis>
  <dataLabels style="Pattern" placement="Inside" font="Verdana-10" Decoration="None">
    <![CDATA[  $(value)\n ]]>
  </dataLabels>
  <legend allowSpan="true" equalCols="false" isVisible="false" placement="Right" halign="Right"
               isMultiline="false">
  <decoration style="None"/>
  </legend>
  <elements place="Stacked" shape="Cylinder" drawOutline="True">
    <morph morph="Grow" stage="None"/>
    <![CDATA[  $(value) ]]>
  </elements>
  <popup background="white" font="Verdana-10" foreground="black"/>
  <decoration style="RoundShadow"/>
  <paint palette="DawnTransluent" paint="Plain" isVertical="true" min="47" max="83"/>
  <insets right="5"/>
  <background minColor="#attributes.backgroundColor#"/>
</frameChart>
</cfoutput>
</cfsavecontent>
below code is in my cold fusion


Code:
<cfsavecontent variable="modelTreatment">
                  <cfoutput>
                  <?xml version="1.0" encoding="UTF-8"?>
                  <XML type="default">
				  <cfif qryTypesOfTreatment.recordcount eq 0>
                      <col>
                      No Data
                      </col>
					  </cfif>
                    <cfloop query="qryTypesOfTreatment">
                    <col>
                    #TYPEOFTREATMENT#
                    </col>
                    </cfloop>
                    <ROW
            <cfloop query="qryTypesOfTreatment"><cfset iRow = currentRow - 1> col#iRow#='#NOOFPATIENTS#'</cfloop>></ROW>
                  </XML>
                  </cfoutput>
                  </cfsavecontent>
                  <cfscript>
                    context  = getPageContext();
                    chart = createObject("java","com.gp.api.jsp.MxServerComponent");
                    svr = chart.getDefaultInstance(context.getServletContext());
                    myChart        = svr.newImageSpec();
                    myChart.width  = 600;
					myChart.height = 250;
                    myChart.type   = attributes.chartFormat;
                    myChart.style  = BarStackedOnco;
                    myChart.model  = modelTreatment;
                    chartTag = svr.getImageTag(myChart,"/CFIDE/GraphData.cfm?graphCache=wc50&graphID=");
                  </cfscript>
                  <cfoutput>#chartTag#</cfoutput>
                  <cfsetting enablecfoutputonly="false"/>