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

is it any property to find two axis meeting point ?

3 Answers 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 26 Sep 2011, 09:46 AM
Hi Team,
 
i am displaying two series with data,i want to display a single pie chart at when two axises are meeting point possiton,
here i have attached a screen for your reference,plz letme  know
 
Thanks,
Saravanan

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 28 Sep 2011, 11:46 AM
Hello Saravanan,

I'm assuming that you want to show a Bubble/Point where the two LineSeries cross? This can be easily achieved by comparing the X and YValues of the two Lines. Whether they have an equal XValue and YVAlue, you can add Bubble or Point

Greetings,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Saravanan
Top achievements
Rank 1
answered on 17 Oct 2011, 09:57 AM
Hi team,
how to compare x and y values,i bind the values for chart
 
 <telerik:RadChart.SeriesMappings>
                <telerik:SeriesMapping LegendLabel="Label 1" CollectionIndex="0">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SplineSeriesDefinition ShowItemLabels="False"
                                ShowItemToolTips="False" ShowPointMarks="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:ItemMapping DataPointMember="YValue" />
                </telerik:SeriesMapping>
 
                <telerik:SeriesMapping LegendLabel="Label 2" CollectionIndex="1">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SplineSeriesDefinition ShowItemLabels="False"
                                ShowItemToolTips="False" ShowPointMarks="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:ItemMapping DataPointMember="YValue" />
                </telerik:SeriesMapping>
 
                <telerik:SeriesMapping LegendLabel="Label 2" CollectionIndex="2">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:ScatterSeriesDefinition ShowItemLabels="False" 
                                ItemStyle="{StaticResource CustomScatterPointStyle}"
                                ShowItemToolTips="True" />
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:ItemMapping DataPointMember="YValue" />
                </telerik:SeriesMapping>
 
            </telerik:RadChart.SeriesMappings>
 
 
 
 
 
 public List<double[]> Data
        {
            get
            {
                List<double[]> _data = new List<double[]>();
 
                double[] inquiries = new double[] { 70, 76, 90, 96, 156, 178, 154, 123 };
                _data.Add(inquiries);
 
                double[] travellers = new double[] { 82, 96, 126, 90, 112, 127, 172, 52  };
                _data.Add(travellers);
                 
                double[] bubble = new double[] { 96 };
                _data.Add(bubble);
 
                return _data;
            }
        }
0
Evgenia
Telerik team
answered on 19 Oct 2011, 04:27 PM
Hello Saravanan,

The comparison between the elements is a trivial task and have no relevance to the Chart control itself. Since your arrays don't have much elements you can simply use this code snippet:

for(i=0;i<arrayA.length;i++){
for(j=0;j<arrayB.length;j++){
if(arrayA[i]==arrayB[j])
{
     //do something with the equal elements
}

Of course there are more complex ways to achieve that which you may easily find in Internet.

Greetings,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Saravanan
Top achievements
Rank 1
Share this question
or