WP was so kind, to post a wonderful project about bar-charts.
I imported it into my code and it looks promising.
My data are forced from my DB into a martix now, which you see at the sceenshot.
As well you see at the screenshot, - that there is only one bar instead of twelve.
I bet, this is very easy to solve for somebody who worked with this bar charts more.
The code BELOW my lines of the screenshot:
It is taken from WP' project. Probably I have to change there something, - but what?
Chart_KuponsBarSeries1.Source := ListChartSource1;
// Label x axis with the data point labels
Chart_Kupons.BottomAxis.Marks.Source := ListChartSource1;
// Chart_Kupons.BottomAxis.Marks.Style := smsLabel;
// For label colors assign the TChartStyles to the Styles property of the series
Chart_KuponsBarSeries1.Styles := ChartStyles1;
// Add a style for each y level
ChartStyles1.Styles.Clear;
for i := 1 to 3 do
with ChartStyles1.Add do
begin
Brush.Color := Random($FFFFFF); // Create a random color
Pen.Color := Brush.Color;
Text := 'Article ' + IntToStr(i);
end;
// Show the style texts in the legend
// Chart_KuponsBarSeries1.Legend.Multiplicity := lmStyle;
Chart_Kupons.Legend.Visible := True;