I'm using the rad cartesian chart control to display multiple lineseries. This is working fine. The problem is for some charts the y-axis value is very large eg: 2500000. These values are shortened to 25E+06. How can I display the entire value?
The other problem is I'm creating a datatemplate for Labels, but multiple labels are displayed for a single datapoint. The code i'm using is -
TextBlock t = new TextBlock();
t.Text = val.ToString();
t.Foreground = Brushes.White;
t.Background = brush;
DataTemplate d = new DataTemplate();
d.DataType = typeof(TextBlock);
FrameworkElementFactory spf = new FrameworkElementFactory(typeof(TextBlock));
spf.SetValue(TextBlock.TextProperty, Convert.ToInt32(val).ToString());
spf.SetValue(TextBlock.ForegroundProperty, brush);
d.VisualTree = spf;
ChartSeriesLabelDefinition cld = new ChartSeriesLabelDefinition();
cld.Template = d;
lineseries.LabelDefinitions.Add(cld);
I'm not doing this in xaml because the number of lineseries is obtained dynamically. I've also attached a snapshot.
The other problem is I'm creating a datatemplate for Labels, but multiple labels are displayed for a single datapoint. The code i'm using is -
TextBlock t = new TextBlock();
t.Text = val.ToString();
t.Foreground = Brushes.White;
t.Background = brush;
DataTemplate d = new DataTemplate();
d.DataType = typeof(TextBlock);
FrameworkElementFactory spf = new FrameworkElementFactory(typeof(TextBlock));
spf.SetValue(TextBlock.TextProperty, Convert.ToInt32(val).ToString());
spf.SetValue(TextBlock.ForegroundProperty, brush);
d.VisualTree = spf;
ChartSeriesLabelDefinition cld = new ChartSeriesLabelDefinition();
cld.Template = d;
lineseries.LabelDefinitions.Add(cld);
I'm not doing this in xaml because the number of lineseries is obtained dynamically. I've also attached a snapshot.