Page 1 of 1
Overlapping series marks
Posted: Fri Mar 22, 2013 8:42 pm
by 15664528
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
Re: Overlapping series marks
Posted: Mon Mar 25, 2013 11:38 am
by 10050769
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:
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;
}
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,
Re: Overlapping series marks
Posted: Mon Mar 25, 2013 2:14 pm
by 15664528
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