is it any property to find two axis meeting point ?

4 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 26 Sep 2011 Link to this post

    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
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 28 Sep 2011 Link to this post

    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 >>
  3. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 17 Oct 2011 Link to this post

    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;
                }
            }
  4. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 19 Oct 2011 Link to this post

    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 >>

Back to Top