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

ChartView with linear X-Axis, how?

3 Answers 135 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 21 Dec 2012, 10:27 AM
I have List of objects (class with 2 int members for x and y value).
Created ChartView with several line series, sharing 1 horizontal and 1 vertical axis between all of them, but when I'm trying to set horizontal axis type to LinearAxis, it just doesn't show any data. When setting it to CategorialAxis - everything works fine. But only LinearAxis fits my needs.

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 24 Dec 2012, 08:15 AM
Hello Sergey,

If you want to use two LinearAxis you will need to use the ScatterLineSeries instead of the LineSeries. Let us know how it goes.

All the best,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Senthil kumar
Top achievements
Rank 1
answered on 21 Nov 2013, 07:02 AM
Hi Petar,
first i explain my situation..

I'm working in a chart to display
1. absolute time: display dateTime value (x axis dateTimecontinousAxis) vs. voltage (y axis - linear axis) in  Line Series,
2.  relative time: display  (integer value) (x axis-categorical Axis) vs.% (y axis) in line Series, Obviously the 2 axes must share the same series. (x-axis will be changed when radio button (absolute time, relative time) changed in screen level).

my Data item object contains like 
{
 public int value {get; set;}  -- This will be mapped to Y-Axis
 public DateTime AbsoluteTime{get; set;}  -- This will be mapped to series of DateTimecontinousAxis when the radio button is selected in absolute
 public double RelativeTime {get; set;}  ----- This value will be mapped to series of CategroricalAxis when the radio button is selected in Relative
}

both x-axis is working correctly. but, x-axis shows defaut CartesianPlotBandAnnotation draw the annotation from -> to plot value. (for example relative time interger value... 1.343, 2.343 as it is the plot value). i cannot format the value like whole integer (0, 2, 4). (But only LinearAxis fits my needs)

so, i have changed to scatterline series instead of line series and
linear axis as x-axis instead of categorical axis. (as per your suggestion)

now the datetimecontinous axis is not support the scatterlineseries. (linearaxis  supports the scatterLineseries).


NOTE. i'm generating the chart in run time

thanks in advance
0
Petar Marchev
Telerik team
answered on 21 Nov 2013, 09:40 AM | edited on 08 Oct 2021, 10:57 AM
Hi Senthil,

I see that you have asked almost the same question in another forum here. I will ask that you don't ask the same question, or a variation of it, in different threads because it makes it really hard to follow the conversation and the person who replies will not have all the information needed. 

Regards,
Petar Marchev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Michael Tissington
Top achievements
Rank 1
commented on 07 Oct 2021, 10:57 PM

Petar - would be helpful if you link to the other forum linked to the actual post - because I can't find an answer to this question.
Martin Ivanov
Telerik team
commented on 08 Oct 2021, 10:57 AM

Tags
ChartView
Asked by
Sergey
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Senthil kumar
Top achievements
Rank 1
Share this question
or