Smart signing

15 posts, 0 answers
  1. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 08 Dec 2010 Link to this post

    Good day!
    I have 2 questions:

    1. How to make a signature with the values do not trim?

    2. The use of "smart" labels do not help, because still occurs imposition of different labels.

    http://i060.radikal.ru/1012/ab/349575ff9f4a.png

  2. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 13 Dec 2010 Link to this post

    Hello,

    From the image you have send me I can see that there is a lot of series and data on the chart. It is normal for the labels to overlap. I would suggest to show the labels when the mouse hovers over a series and hide them when the mouse does not hover over a series.

    Here is a code snippet:

    ...
    SeriesMapping seriesMapping = new SeriesMapping();
    seriesMapping.ItemMappings.Add(new ItemMapping("Salary", DataPointMember.YValue));
    seriesMapping.ItemMappings.Add(new ItemMapping("Age", DataPointMember.XValue));
    InteractivitySettings interactivitySettings = new InteractivitySettings();
    interactivitySettings.HoverScope = InteractivityScope.Series;
    seriesMapping.SeriesDefinition = new LineSeriesDefinition()
    {
        ShowItemLabels = false,
        InteractivitySettings = interactivitySettings
    };
    RC1.SeriesMappings.Add(seriesMapping);
     
    seriesMapping = new SeriesMapping();
    seriesMapping.ItemMappings.Add(new ItemMapping("Salary", DataPointMember.YValue));
    seriesMapping.ItemMappings.Add(new ItemMapping("Age", DataPointMember.XValue));
    interactivitySettings = new InteractivitySettings();
    interactivitySettings.HoverScope = InteractivityScope.Series;
    seriesMapping.SeriesDefinition = new BarSeriesDefinition()
    {
        ShowItemLabels = false,
        InteractivitySettings = interactivitySettings
    };
    RC1.SeriesMappings.Add(seriesMapping);
    ...
    RC1.DefaultView.ChartArea.HoverChanged += new EventHandler<ChartHoverChangedEventArgs>(ChartArea_HoverChanged);
    and in the event handler you show / hide series labels:

    void ChartArea_HoverChanged(object sender, ChartHoverChangedEventArgs e)
    {
        foreach (var item in e.HoveredSeries)
        {
            item.Definition.ShowItemLabels = true;
        }
        foreach (var item in e.UnhoveredSeries)
        {
            item.Definition.ShowItemLabels = false;
        }
    }

    I hope this is going to help you out.

     

    All the best,
    Evgeni "Zammy" Petrov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 13 Dec 2010 Link to this post

    Hello!
    Thanks for the reply, but it is unfortunately not acceptable, because when you move beyond the selection series in the chart appears more and tip. The user needs to see it all the signatures on the chart without further action. In addition, these graphics the user uses to upload a PNG for creating presentations, but there need to see all the tags.
  4. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 16 Dec 2010 Link to this post

    Hi,

     In this case why don't you force the chart to be wider? This will give enough space for all the labels to show on the chart. Let me know how this meets your requirements.

    All the best,
    Evgeni "Zammy" Petrov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  5. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 16 Dec 2010 Link to this post

    Good day!
    This recommendation has already been voiced by users, but in fact it turns out that the screen resolution for plotting is not enough. What can you recommend for a more graphic charting?
  6. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 21 Dec 2010 Link to this post

    Hello Бежнар,

     I would try to put the chart into a scrollview, and make the chart as big as it is needed for exporting purposes. This way you will be able to export a better chart image.

    Greetings,
    Evgeni "Zammy" Petrov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  7. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 21 Dec 2010 Link to this post

    So after all, with the mapping to be done?
    If it is not difficult, can cause the sample to sample.
    Thanks in advance.
  8. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 23 Dec 2010 Link to this post

    Hello ??????,

     I am not sure I followed your question. Can you please provide more details about the question at hand? Thanks.

    Greetings,
    Evgeni "Zammy" Petrov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  9. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 23 Dec 2010 Link to this post

    More detailed information is presented in the first post.
    I need to answer the following questions:
    1. How can I make do not trim marks on the borders of the region report
    2. How to make tags are not overlapped
  10. Sia
    Admin
    Sia avatar
    745 posts

    Posted 24 Dec 2010 Link to this post

    Hello Bejnar,

    Unfortunately the first issue with clipping the first and the last label is already logged in our Public Issues Tracking system and we need to extend the smart labels' functionality to avoid such unwanted behavior. At the moment we cannot provide you with a specific time-frame for this. 

    Another possible solution of your problem with the overlapping is to set different label position for one of your bar series. You can see how to position the labels at the middle point of the bars in this example in our demos section. Please tell us if this solution is acceptable for your scenario.

    Regards,
    Sia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  11. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 24 Dec 2010 Link to this post

    On the first question is clear, we will wait for a solution.
    On the second question we initially studied the specified example, but it still does notgive the desired effect, the labels are overlapping. In addition, the derivation of severaldifferent series in general are obtained unreadable labels. For the user, the problem is critical.
  12. Sia
    Admin
    Sia avatar
    745 posts

    Posted 29 Dec 2010 Link to this post

    Hello ??????,

    I am not sure why the suggested solution does not work in your scenario.
    Can you send us a sample project so that we can propose you an appropriate solution?

    Best wishes,
    Sia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  13. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 09 Jan 2011 Link to this post

    Well, I will prepare and lay out an example here
  14. Бежнар
    Бежнар avatar
    27 posts
    Member since:
    Aug 2010

    Posted 12 Jan 2011 Link to this post

    Sending you an example, as promised.
    The attachment is a. zip archive (example)
  15. Sia
    Admin
    Sia avatar
    745 posts

    Posted 14 Jan 2011 Link to this post

    Hello Bejnar,

    I suggest you to use our Zooming and Scrolling functionality by setting it as follows:
    <telerik:ChartArea Grid.Column="0" Grid.Row="1"  x:Name="chartArea"  IsNoDataMessageEnabled="False" Margin="0,5,0,0">
        <telerik:ChartArea.ZoomScrollSettingsX>
            <telerik:ZoomScrollSettings RangeStart="0.3" RangeEnd="0.6" ScrollMode="ScrollAndZoom" />
        </telerik:ChartArea.ZoomScrollSettingsX>
    </telerik:ChartArea>

    Take in mind that you need to data bind the chart in order to get the zooming and scrolling to work.
    Here you can read how to use manual series mapping:
    http://www.telerik.com/help/silverlight/radchart-populating-with-data-data-binding-with-manual-series-mapping.html

    All the best,
    Sia
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top