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

series and sizes

2 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rodrigo
Top achievements
Rank 1
Rodrigo asked on 27 Mar 2012, 10:23 AM
Hello

I have a chart in WPF and I go to Reporting but I have some doubts that following are:
They have to be the closest thing to signed attachment.

- As I can make the high is less.
- As I can change or hide where it says 0 and 170 for a text or hide it, is a series: Code
Telerik.Reporting.Charting.ChartSeriesItem seriesItem = new Telerik.Reporting.Charting.ChartSeriesItem();
chartLinea.PlotArea.YAxis[a].TextBlock.Text = "Escala Total";
seriesItem.Label.TextBlock.Text = "Escala Total";
seriesItem.YValue = Convert.ToInt32(sujeto.EscalaTotal);
seriesItem.Name = "Escala Total";
seriesItem.Visible = false;
             
series.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.SeriesName;
                 
 
                // se inserta el de 170 puntos
chartLinea.PlotArea.YAxis[a++].TextBlock.Text = "";
seriesItem.Label.TextBlock.Text = "";
seriesItem.YValue = 170;
seriesItem.Name = "";
seriesItem.Visible = false;
series.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.SeriesName;
series.AddItem(seriesItem);
 
             
series.Appearance.LabelAppearance.LabelLocation = Telerik.Reporting.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Outside;
chartLinea.Series.Clear();
chartLinea.Series.Add(series);

- Also get the minimum of the Y t max but does nothing. Code
chartLinea.PlotArea.YAxis.MinValue = 30;
chartLinea.PlotArea.YAxis.MaxValue = 170;
chartLinea.PlotArea.YAxis.Step = 10;
chartLinea.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.DarkGreen;
chartLinea.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.DarkGreen;
chartLinea.PlotArea.YAxis.Appearance.TextAppearance.Visible = true;
chartLinea.PlotArea.YAxis.Appearance.Visible = Telerik.Reporting.Charting.Styles.ChartAxisVisibility.True;
chartLinea.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.General;

thanks

2 Answers, 1 is accepted

Sort by
0
Rodrigo
Top achievements
Rank 1
answered on 28 Mar 2012, 08:35 AM
help please
0
Evgenia
Telerik team
answered on 30 Mar 2012, 08:22 AM
Hi Rodrigo,

1. Why don't you change the scale of the XAxis? Instead of 1, you can set its MaxValue to 0.3 or even smaller. This can be done by turning off the AutoScale property of the XAxis and setting your own MinValue, MaxValue and Step as described in our documentation.

2. Based on the information provided it is hard for me to say where these labels are set and how to hide them. Please send us your full source code and we'll help you with that.

3. What is your question? I couldn't understand what you want to achieve.

Kind regards,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Rodrigo
Top achievements
Rank 1
Answers by
Rodrigo
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or