I have 3 vertical bar series, side stacked, with marks visible (above the bar) with the "Auto Mark Position" option checks. Often, the marks overlap making the values unreadable. Is there a way to ensure that the marks will not overlap? Or maybe to hide the marks and show them only when the mouse hovers over a bar? I would prefer to have them always visible, but I am getting complaints about the overlapping values making the chart unreadable.
Thanks-
Mark
Overlapping series marks
Re: Overlapping series marks
Hello Mark,
To avoid that marks overlap when you use stack marks I recommend use property of MarksOnBar that allow you draw the marks on the bar, as do in next lines of code:
On the other hand, you have other options, one is use custom position of marks as do in next thread. Other option is use mark tips tool as do in the demo example All features\Welcome !\Tools\Mark tips that allow you show marks only when the mouse hover over a bar. If you have any problems please let me know.
I hope will helps.
Thanks,
To avoid that marks overlap when you use stack marks I recommend use property of MarksOnBar that allow you draw the marks on the bar, as do in next lines of code:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
Steema.TeeChart.Styles.Bar bar1, bar2, bar3;
private void InitializeChart()
{
bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar2 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar3 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues(5);
bar2.FillSampleValues(5);
bar3.FillSampleValues(5);
bar1.MarksOnBar = true;
bar2.MarksOnBar = true;
bar3.MarksOnBar = true;
bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Overlapping series marks
Putting the marks on the bars does not really work, as if the bars are the same height and the mark value is wider than the bar width (as when the numeric value is large) then the value still overlap. I will investigate your other options.
Thanks-
Mark
Thanks-
Mark