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
875
Insert to DateTimeBased tables into one DataChart
posted

HI,

I have got two tables (1x 96 columns, 1 x 3 colums) which include a Date like "05.03.2015 : 12:00:01".

I now want to insert in a DataChart values of 6 columns of table 1 and two values of columns of table 2.

Inserting the 6 of the first table is functional. Inserting the other values it is not possible, cause i think i set the datasource for CategoryDateTimeXAxis xAxis to the dateTime-Field of my first table.

How can i build a xAxis, which starts from 24 hours until now in the past so i can insert all builded lineSeries of both tables?

For better understanding?!?:

Table 1

05.03.2015 : 12:00:01,100,55,66,77,88,99

05.03.2015 : 12:01:01,100,33,44,22,11,99

05.03.2015 : 12:02:01,100,11,14,55,66,22

etc. (1 Minute/line)

Table 2

05.03.2015 : 12:00:44,1,5

05.03.2015 : 12:05:23,2,4

05.03.2015 : 12:10:11,5,3

etc. (5 Minute/line)

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The Axis only has one data source. So the only way to do this is to combine your two tables into a single table. You could do this in a number of ways. You could create a new DataTable in code and then loop through the rows of each of your existing tables and create a corresponding row in the new table. Or you could do the same using an UltraDataSource.

Children