harmandohs

Combine Graphic Bars And Line

Recommended Posts

God Day.

i have this isue, i already have a graphic with 2 bars, i want to add a line, i'am usin the example but its add me other bar i need to show as line,

here is the image how its look and the code i'am using

i'am using visual basic.net 2003

 xmlData = " <chart palette='1' caption='Sales' showLabels='1' showvalues='0' numberPrefix='$' sYAxisValuesDecimals='2' connectNullData='0' PYAxisName='Revenue' SYAxisName='Quantity'  numDivLines='4' formatNumberScale='0'> "
        xmlData = xmlData & "  <categories> "
        xmlData = xmlData & " <category label='Jan' /> "
        xmlData = xmlData & " <category label='Feb' /> "
        xmlData = xmlData & " <category label='Mar' /> "
        xmlData = xmlData & " </categories> "
        xmlData = xmlData & " <dataset seriesName='Product A' color='AFD8F8' showValues='0'>"
        xmlData = xmlData & " <set value='25601.34' />"
        xmlData = xmlData & " <set value='20148.82' /> "
        xmlData = xmlData & " <set value='17372.76' /> "
        xmlData = xmlData & " </dataset> "
        xmlData = xmlData & " <dataset seriesName='Product B' color='F6BD0F' showValues='0' > "
        xmlData = xmlData & " <set value='57401.85' /> "
        xmlData = xmlData & " <set value='41941.19' /> "
        xmlData = xmlData & " <set value='114845.27' dashed='1'/>"
        xmlData = xmlData & " </dataset> "
        xmlData = xmlData & " <dataset seriesName='Total Quantity' color='8BBA00' showValues='0' parentYAxis='S' renderAs = 'Line'> "
        xmlData = xmlData & " <set value='45000' /> "
        xmlData = xmlData & " <set value='44835' /> "
        xmlData = xmlData & " <set value='44835' /> "
        xmlData = xmlData & "   </dataset> "
        xmlData = xmlData & " </chart> "


  'Generar Archivo XML
        Dim strStreamW As Stream
        Dim strStreamWriter As StreamWriter
        Dim Archivo As String
        Archivo = Request.PhysicalApplicationPath & DirRep & pNombreArchivo

        strStreamW = File.OpenWrite(Archivo)
        strStreamWriter = New StreamWriter(strStreamW, System.Text.Encoding.UTF8)
        strStreamWriter.WriteLine(xmlData)
        strStreamWriter.Close()

post-46330-0-84610600-1370622570_thumb.png

Edited by harmandohs

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

It's glad to know that you have manged to resolve your issue.  :)

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