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.
14 Answers, 1 is accepted
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);
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
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.
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
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?
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
If it is not difficult, can cause the sample to sample.
Thanks in advance.
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
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
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
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.
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
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