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.
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
0
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
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
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
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
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 >>
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
commented on 07 Oct 2021, 10:57 PM
Top achievements
Rank 1
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
commented on 08 Oct 2021, 10:57 AM
Telerik team
Here is the working link: https://www.telerik.com/forums/cartesianplotbandannotation-and-categoricalaxis-fill-problem