title: Delphi TChart Bar Width
body: <p>I'm trying to figure it out how to set a fixed size to the bars' width in TChart.</p>
  
  <p>I've tried to search a lot for a similar "problem", but I may be using the wrong terms, because I found no related topics in the internet.</p>
  
  <p>My chart has Horizontal Scrolling enabled, so I would like to have bars with the same width regardless how many bars are in the chart.</p>
  
  <p>Here's a sample where I added 10 sample values and, for my purpose, this bar width is acceptable: </p>
  
  <p><a href="https://i.stack.imgur.com/RU3U6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RU3U6.png" alt="10 bars"></a></p>
  
  <p>But when I add 40 sample values, for example, the bars became so thin, even when showing only 10 values and letting all the others visible only after scroll the bars to the left:  </p>
  
  <p><a href="https://i.stack.imgur.com/PQfFK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PQfFK.png" alt="more bars"></a></p>
  
  <p>Here's the code I'm using to add the sample values (just for you to see there's nothing special):</p>
  
  <pre><code>procedure TForm5.Button1Click(Sender: TObject);
  var
      i: Integer;
  begin
      for i := 0 to ChartFatGrupoPerc.SeriesCount-1 do
          ChartFatGrupoPerc.Series[i].FillSampleValues(StrToInt(eItems.Text));
      ChartFatGrupoPerc.BottomAxis.Maximum := StrToInt(eMax.Text);
      ChartFatGrupoPerc.BottomAxis.Minimum := StrToInt(eMin.Text);
  end;
  </code></pre>
  
  <p>So, the question is: Is there an way I can define the bars' width regardless the amount of values?</p>
  
  <p>Thanks in advance,<br>
  Kelver Merlotti [KM]</p>