Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Ultrachart
posted

Is it not possible to get a Composite Chart directly with two datasources.
In all the examples I only find Solutions when the data were made in code.
What I meanb is to use the Ultrachart1.datasource =  for an Composite Chart.

Here the code for one datasource.

Please give me an answer how we can do this on a simple way.

A other solution were we create two Charts an make one the  bacground of one Chart transaprency, but we also did not find it hjow we can do an Chart transpareny.

 


Dim Conn As SqlClient.SqlConnection = New SqlClient.SqlConnection(strConnUE)
Conn.Open()

Dim da1 As New SqlClient.SqlDataAdapter(SQL_TEXT, Conn)

Dim ds1 As New DataSet

Me.UltraChart1.DataSource = ds1

da1.Fill(ds1,"data")

Conn.Close()

 

Parents
  • 53790
    posted

    Hello heureka,

    heureka said:
    Is it not possible to get a Composite Chart directly with two datasources

    Yes, it is possible. You could use DataBind() methods of your series. For example:

    XYSeries lineSeries = new XYSeries();

    lineSeries.DataBind(lineData,"XValue", "Value", "Name");

    or

    BoxSetSeries boxSeries = new BoxSetSeries();

    boxSeries.Data.DataSource = boxData;

    boxSeries.Data.LabelColumn ="Name";

    boxSeries.Data.MinColumn ="Min";

    boxSeries.Data.MaxColumn ="Max";

    Please take a look at the attached sample for more details. If you have any questions, feel free to write us

    Regards

    UltraChartBoxChart_4.zip
Reply Children