This question is locked. New answers and comments are not allowed.
Hi, I try to use a RadChart with two series definition, one has a BarSeriesDefinition and the other one has a SplineSeriesDefinition, please take a look into the attached image, the last item for my SplineSeriesDefinition is always outside the chart, the real value is 1,982, but the chart shows always 1.98
In my code, I changed the SplineSeriesDefinition to a LineSeriesDefinition because I found an example that was using LabelSetting property, the problem is that I didn't find it in my SplineSeriesDefinition:
I tried with different ways but doesn't work. I also used this:
and I changed LayoutMode without sucess.
Any idea?
Thank you for the support!
In my code, I changed the SplineSeriesDefinition to a LineSeriesDefinition because I found an example that was using LabelSetting property, the problem is that I didn't find it in my SplineSeriesDefinition:
BarLabelSettings settings = new BarLabelSettings(); settings.Distance = 5; settings.ShowConnectors = true; settings.LabelDisplayMode = LabelDisplayMode.MidPoint; this.RadChart.DefaultView.ChartArea.SmartLabelsEnabled = true; SeriesMapping sm = new SeriesMapping(); //sm.SeriesDefinition = new SplineSeriesDefinition(); sm.SeriesDefinition = new LineSeriesDefinition(); ((LineSeriesDefinition)sm.SeriesDefinition).LabelSettings = settings; sm.SeriesDefinition.ShowItemToolTips = true; sm.SeriesDefinition.ItemToolTipFormat = "#VAL{c0}"; sm.SeriesDefinition.ItemLabelFormat = sm.SeriesDefinition.ItemToolTipFormat; sm.ItemMappings.Add(new ItemMapping("Period", DataPointMember.XCategory)); sm.ItemMappings.Add(new ItemMapping("TotalCostLine", DataPointMember.YValue)); this.RadChart.SeriesMappings.Add(sm);I tried with different ways but doesn't work. I also used this:
this.RadChartMonthlyCost.DefaultView.ChartArea.LabelFormatBehavior = LabelFormatBehavior.HumanReadable; this.RadChartMonthlyCost.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Auto;and I changed LayoutMode without sucess.
Any idea?
Thank you for the support!