Hi,
I'm using a domain service to populate a Radchart.
The problem i'm facing is that the label position on the XAxis is incorrect. It's not centered.
As you can see in the picture, the first column should have value "100, however the label is shown outside the chart....
How can i center this labels?
Thanks,
---------------------------
I'm using a domain service to populate a Radchart.
The problem i'm facing is that the label position on the XAxis is incorrect. It's not centered.
As you can see in the picture, the first column should have value "100, however the label is shown outside the chart....
How can i center this labels?
Thanks,
---------------------------
ChartArea ca = (ChartArea)senderObj;
foreach (DataPoint p in ca.SelectedItems)
{
int monthdetail = (int)p.XValue;
InvokeOperation<
Dictionary
<string, int>> MonthFamily = dbcontext.GetTestCaseResultsByFamily(monthdetail);
MonthFamily.Completed += (sender, args) =>
if (MonthFamily.Error == null)
List<
TestsByFamily
> testsbyfamily = new List<
TestsByFamily
>();
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
radChart2.DefaultView.ChartArea.NoDataString = "Click on the chart above to see the tests by family";
foreach (var monthFamily in MonthFamily.Value)
{
testsbyfamily.Add(new TestsByFamily(monthFamily.Key,monthFamily.Value));
}
this.radChart2.ItemsSource = testsbyfamily;
ISeriesDefinition definition = new BarSeriesDefinition()
{
LegendDisplayMode = LegendDisplayMode.DataPointLabel,
ShowItemToolTips = true
};
SeriesMapping mapping = new SeriesMapping()
{
SeriesDefinition = definition
};
mapping.ItemMappings.Add(new ItemMapping()
{
DataPointMember = DataPointMember.XCategory,
FieldName = "Family"
});
mapping.ItemMappings.Add(new ItemMapping()
{
DataPointMember = DataPointMember.YValue,
FieldName = "TotalByMonth"
});
radChart2.SeriesMappings.Add(mapping);
radChart2.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside;
radChart2.DefaultView.ChartArea.LabelFormatBehavior = LabelFormatBehavior.None;