Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Left Axis and bar chart label are the same

Status
Not open for further replies.

jagrroad

Programmer
Jul 8, 2008
4
US
I'm trying to get a very basic horizontal Tee Chart working, but the Left Axis and label for the horizontal bars are the same.

I want the horizontal bar labels to either be hidden or display a numeric value like 10, 49, 100 etc.

The code to display the chart:
procedure TForm1.DrawHorzChart2( chart: TChart );
var
series: THorizBarSeries;
i: Integer;
s: String;
begin

series := THorizBarSeries.Create( chart );
series.ParentChart := chart;

for i := 1 to 10 do begin
s := 'item ' + IntToStr( i );
series.AddBar( i*i, s, clRed );
end;

// hide legend (box at right)
chart.Legend.Visible := False;

end;
 
property Series.Marks.Style := smsValue;

choises are
smsValue, smsPercent, smsLabel, smsLabelPercent, smsLabelValue, smsLegend, smsPercentTotal, smsLabelPercentTotal, smsXValue, smsXY



Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top