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

Smart signing

14 Answers 75 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Бежнар
Top achievements
Rank 1
Бежнар asked on 08 Dec 2010, 06:52 AM
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

14 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 13 Dec 2010, 08:02 AM
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
0
Бежнар
Top achievements
Rank 1
answered on 13 Dec 2010, 08:50 AM
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.
0
Evgeni "Zammy" Petrov
Telerik team
answered on 16 Dec 2010, 08:34 AM
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
0
Бежнар
Top achievements
Rank 1
answered on 16 Dec 2010, 09:20 AM
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?
0
Evgeni "Zammy" Petrov
Telerik team
answered on 21 Dec 2010, 01:06 PM
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
0
Бежнар
Top achievements
Rank 1
answered on 21 Dec 2010, 01:33 PM
So after all, with the mapping to be done?
If it is not difficult, can cause the sample to sample.
Thanks in advance.
0
Evgeni "Zammy" Petrov
Telerik team
answered on 23 Dec 2010, 05:34 PM
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
0
Бежнар
Top achievements
Rank 1
answered on 23 Dec 2010, 05:56 PM
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
0
Sia
Telerik team
answered on 24 Dec 2010, 09:43 AM
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
0
Бежнар
Top achievements
Rank 1
answered on 24 Dec 2010, 10:06 AM
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.
0
Sia
Telerik team
answered on 29 Dec 2010, 05:35 PM
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
0
Бежнар
Top achievements
Rank 1
answered on 09 Jan 2011, 05:11 PM
Well, I will prepare and lay out an example here
0
Бежнар
Top achievements
Rank 1
answered on 12 Jan 2011, 01:47 PM
Sending you an example, as promised.
The attachment is a. zip archive (example)
0
Sia
Telerik team
answered on 14 Jan 2011, 01:42 PM
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>>
Tags
Chart
Asked by
Бежнар
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Бежнар
Top achievements
Rank 1
Sia
Telerik team
Share this question
or