Recent

Author Topic: TAChart - bar width  (Read 6762 times)

faber

  • Guest
TAChart - bar width
« on: December 12, 2010, 06:02:11 pm »
Hi,
I have problem with setting constant width of bar.
As example, that datapoint:
Code: [Select]
1|1|?|1
2|2|?|2
3|1|?|3
4|2|?|4
7|1|?|7
9|1|?|9
10|1|?|10
11|1|?|11
I put to lcsMarks in "Axis DEMO".
With that data I will get one bar with different width (attached screenshot).
How to get same width on all bars ? that free space over bar 7 is ok. BarWidthPercent probably counts the free space between bars, how to avoid this ?

faber

  • Guest
Re: TAChart - bar width
« Reply #1 on: December 12, 2010, 08:42:59 pm »
Situation is even worse when we have real numbers.
It would be great if we have the possibility of setting a fixed width bar that would be the minimum width of bars possible to draw in that case.
This is the request for consideration by the ASK  :)

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart - bar width
« Reply #2 on: December 13, 2010, 06:06:05 am »
I see. Unfortunately, I am very busy right now --
will be able do something about it in a day or two.

Meanwhile if you actually have integer X values, but with some missing,
you can work around the problem by adding the corresponding points with zero Y value.

faber

  • Guest
Re: TAChart - bar width
« Reply #3 on: December 13, 2010, 01:14:33 pm »
Thanks.
I must also take into account the real numbers.
For now I patched taseries for themselves but unfortunately my modification is based on a double drawing series. I'll wait for your better patch.  :)

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAChart - bar width
« Reply #4 on: December 15, 2010, 06:27:00 am »
Please try r28717, see new BarWidhStyle property

faber

  • Guest
Re: TAChart - bar width
« Reply #5 on: December 15, 2010, 10:07:41 am »
Works perfectly.
BIG THX.

 

TinyPortal © 2005-2018