This is a migrated thread and some comments may be shown as answers.

Multiseries /series type - chart help

1 Answer 83 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Top achievements
Rank 1
travis asked on 27 Jul 2011, 06:14 PM
I would like to show a stacked bar chart that is comprised of two series.  This part I have set up and working just fine using databinding.
There is always 24 points, one for each hour for both series.  I have set up the xaxis with shorttime and formatted the labels.  My datalayer is doing the oa date conversions and passing date values as double to the source datatable.  I'm handing the on_databind event to set up appropriate properties for the series including the col specifications and series type properies. 

Now that my range stacked bars are setup and working fine I am trying to add an additonal series to the chart that is not made up of a full 24 points.  In fact there may be 0 points or many points in the entire series landing on dates between the xaxis markers (which are formatted for each hour).  The reason for this is the third series is intended to represent events which for all intents and purposes are random.  I intended to use the same databinding event handler to capture and change the type to type point of this third series to point and simply append my data for this series to the existing datatable.  I would intended to pass the variable x dates of the third series with a static y value representing a value just above the max of my existing series1/2 stacked ranges.

and i was wondering if you could help me with a sample?

the series data looks something like this (assume in my data that I've done the oa_Date conversion). Further assume that for both series 1 and 2 there are full 24 points, one for each hour.

Whether I try to represent the dataset below using binding or manually creating series I can not get the position of the 3rd series set properly on the xaxis. 

series_1,5/5/2011 2:00,8
series_1,5/5/2011 3:00,9
series_1,5/5/2011 4:00,32
series_1,5/5/2011 5:00,3
 series_2,5/5/2011 2:00,21
series_2,5/5/2011 3:00,23
series_2,5/5/2011 4:00,3
series_2,5/5/2011 5:00,12
series_3,5/5/2011 2:23,30
series_3,5/5/2011 4:46,30

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 02 Aug 2011, 07:19 AM
Hello Travis,

Try setting your third series data points manually in order to control their appearance.

As you've mentioned there may be 0 points or many points, then you could try using null values and set the series Empty Point behavior to a property that best works for you.

Hope that helps.

Kind regards,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Chart (obsolete as of Q1 2013)
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question