![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Marker values shown, instead of Label. | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | sdgr |
| Component: | Chart | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | normal | CC: | sandra |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Marker values instead of Label. | ||
This isn't a bug. If you don't add any values to labels of Series, when the MarkSeries style is set to label, the default value of MarkSeries is the point value. You can achieve as you want of two ways:
First, set SeriesMarks items property to false, for the labels don’t have value:
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
var series1 = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
Random rnd = new Random();
series1.Marks.Visible = true;
series1.Marks.Style = MarksStyles.Label;
series1.Add(0, rnd.Next(1000), "A");
series1.Add(1, rnd.Next(1000), "B");
series1.Add(2, rnd.Next(1000), "C");
series1.Add(3, rnd.Next(1000));
series1.Marks.Items[3].Visible = false;
series1.Add(4, rnd.Next(1000), "D");
series1.Add(5, rnd.Next(1000), "F");
series1.Add(6, rnd.Next(1000), "G");
series1.Add(7, rnd.Next(1000));
series1.Marks.Items[7].Visible = false;
series1.Add(8, rnd.Next(1000));
series1.Marks.Items[8].Visible = false;
series1.Add(9, rnd.Next(1000), "H");
}
Second,set blank string for the labels don’t have value:
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
var series1 = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
Random rnd = new Random();
series1.Marks.Visible = true;
series1.Marks.Style = MarksStyles.Label;
series1.Add(0, rnd.Next(1000), "A");
series1.Add(1, rnd.Next(1000), "B");
series1.Add(2, rnd.Next(1000), "C");
series1.Add(3, rnd.Next(1000)," ");
series1.Add(4, rnd.Next(1000), "D");
series1.Add(5, rnd.Next(1000), "F");
series1.Add(6, rnd.Next(1000), "G");
series1.Add(7, rnd.Next(1000), " ");
series1.Add(8, rnd.Next(1000), " ");
series1.Add(9, rnd.Next(1000), "H");
}
Thanks,
|
Created attachment 56 [details] Marker values instead of Label. Hi, Having a column-chart with Labels defined, I show the markers for this Series, but with Style=Label. This works well for all the values, having a label. But for those who haven't a label, I would like no marker, now I get the value marker instead. I use version .NET 2012 4.1.2012.09280. Is this bug solved in a more recent version. Thanks for your help.