Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am trying to create a linked charts (drilldown charts) using fusion charts in Winforms (C#).\
But I could only view the parent chart. Can anyone help me on this?
Posted

hi u want to have clicakble charts if yes then you have to do like this

public Sub Demo()

VB
If classvariable.dataset.Tables("dtgrd").Rows.Count > 0 Then
                   dtgrd = classvariable.dataset.Tables("dtgrd")
                   datagrd.DataSource = dtgrd
                   datagrid = dtgrd
                   datagrd.DataBind()
                   datagrd.Visible = False

               Else
                   mymsgbox("No Record Available Between  " + Session("FromDate") + " And " + Session("Todate"))
                   datagrd.Visible = False
               End If
               Dim strXML As String


               strXML = "<graph caption='" + strCaption + "' subCaption='" + strSubCaption + "' XAXISNAME='" + xAxis + "' YAXISNAME='" + yAxis + "' showToolTip='1' showToolTipShadow='1'  bgColor='FF5904,FFFFFF' bgRatio='20,80' decimalPrecision='0'  defaultAnimation='1' showNames='1' numberSuffix=''  pieSliceDepth='30' formatNumberScale='0' bgAlpha='10' rotatenames='1' slantlabels='0' showvalues='1'  showAlternateHGridColor='1' AlternateHGridColor='ff5904' divLineColor='ff5904' divLineAlpha= '20' alternateHGridAlpha='5' >"
               Dim i As Integer
               For i = 0 To classvariable.dataset.Tables("dtgrd").Rows.Count - 1
                   strXML = strXML & "<set name='" & classvariable.dataset.Tables("dtgrd").Rows(i).Item("AuthorityName").ToString() & "' value= '" & classvariable.dataset.Tables("dtgrd").Rows(i).Item("TotalCertificates").ToString() & "'Link='" & Server.UrlEncode("DetailedGraph.aspx?AuthorityName=" & classvariable.dataset.Tables("dtgrd").Rows(i).Item("AuthorityName").ToString()) & "&TotalCertificates=" & classvariable.dataset.Tables("dtgrd").Rows(i).Item("TotalCertificates").ToString() & "'

/>"

Next
strXML = strXML & ""
Literal1.Text = FusionCharts.RenderChart("FusionCharts/Column3D.swf", "", strXML, "FactorySum", "900", "400", False, True)

End If
End Sub




you have to use the word Link as it is in the strXml "Link" provides the the link Server.url on whiuch page you want to show the graph and pass the Rows(i) item to the respective graphs .if this cant work for you please give me your code i will help to create the same graph


Thanks
Pranay
 
Share this answer
 
v3
Hi,

Thanks Pranay,

I have a windows application where there is a button. On clicking it, chart is displayed using shockwaveflash control. On clicking a column shown, child charts should be shown in the same shockwaveflash control.

Please find the XML from the below link.

http://www.fusioncharts.com/resources/dev-resources/javascript-linkedcharts-in-asp-net-c-with-fusioncharts-xt/[]


Heading : LinkedCharts using Data String
 
Share this answer
 
Comments
H.Brydon 17-Dec-13 8:32am    
You should use the "Question or Comment" mechanism to make this response instead of providing a "Solution" that is not a solution. Pranay likely didn't see the non-solution "solution".

Your solution will also likely be downvoted; you probably want to delete this...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900