Steema Issues Database

Note: 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.



Bug 516 - Marker values shown, instead of Label.
Summary: Marker values shown, instead of Label.
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 09:48 EST by sdgr
Modified: 2013-12-13 10:50 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Marker values instead of Label. (77.48 KB, image/pjpeg)
2013-12-12 09:48 EST, sdgr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdgr 2013-12-12 09:48:58 EST
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.
Comment 1 sandra pazos 2013-12-13 10:49:37 EST
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,