Hello,
I am assigning each bar to its position, the problem i have is that the bars do not center to the axis (variable name+date), i know about a property called indexation, but i do not really know how to use it in order to center bars to the variable at the axis. Below you can see my current state and at the right, the one i would like to achieve.
Thank you.
Indexation issue with TeeChat for .Net
Indexation issue with TeeChat for .Net
- Attachments
-
- Indexation.png (37.35 KiB) Viewed 11546 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Indexation issue with TeeChat for .Net
Hello,
Which gives me:
You want the third bar6 bar with value '5' to be directly over the '2' of the X axis?
Just to confirm: when running this code:David N. wrote: ↑Thu Jun 22, 2023 8:28 amam assigning each bar to its position, the problem i have is that the bars do not center to the axis (variable name+date), i know about a property called indexation, but i do not really know how to use it in order to center bars to the variable at the axis. Below you can see my current state and at the right, the one i would like to achieve.
Code: Select all
public Form1()
{
InitializeComponent();
for (int i = 0; i < 6; i++)
{
var bar = new Bar(tChart1.Chart);
if(i <= 2)
{
bar.FillSampleValues(1);
}
else if(i >= 2 && i <= 4 )
{
bar.FillSampleValues(2);
}
else if (i >= 4 && i <= 6)
{
bar.FillSampleValues(3);
}
bar.MultiBar = MultiBars.Side;
}
}
Best Regards,
Christopher Ireland / 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 |