Search found 75 matches

by Errol
Fri Apr 04, 2014 11:06 pm
Forum: VCL
Topic: Automatic Axis Increment
Replies: 3
Views: 5159

Re: Automatic Axis Increment

Good morning Yeray Thank you for your response. Any idea when this error will be resolved? I am reluctant to issue a new release of my software without this very useful feature of auto-axis redraw with sensible increments on zoom. Having to continually reset increments at different zoom levels is so...
by Errol
Fri Apr 04, 2014 9:38 pm
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good morning Yeray Thanks for your reply concerning bar chart legends being displayed in a line chart. I had already set the OnGetLegendText event to nil so this did not solve the problem. However my problem went away once I set Chart.Legend.TextStyle := ltsPlain to cure the bar chart legend placeme...
by Errol
Fri Apr 04, 2014 4:18 am
Forum: VCL
Topic: Automatic Axis Increment
Replies: 3
Views: 5159

Automatic Axis Increment

I have just noticed that the increments on my chart axes are now not showing sensible values. Formerly, I could set an axis increment to say 0.01, and the axis labels would automatically adjust to 55,60,65 etc when the axis range was large, and 91.41, 91.42 etc when I zoom in. See attachments. This ...
by Errol
Fri Apr 04, 2014 2:27 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good afternoon Yeray I have made good progress with bar charts representing geological columns but I have a persistent error that I cannot correct. I use a self-stacked bar chart with a single series for the chart and another series for the legend. The field used for the legend text (Rock Type) is d...
by Errol
Tue Apr 01, 2014 8:25 pm
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good morning Yeray I appear to have solved how to left-justify legend text in a self-stacked bar chart which uses a single series, and where the legend text is defined by assigning XLabelsSource to a field in the data set other than the primary bar axis. This results in the legend having two compone...
by Errol
Sun Mar 23, 2014 11:18 pm
Forum: VCL
Topic: Stacked Bar Chart and Marks
Replies: 16
Views: 21561

Re: Stacked Bar Chart and Marks

Hi Yeray

Can you please abandon my last request regarding hiding marks. I see that the program calls an override version of DrawBar that overrides the Marks visible setting. Sorry about this.

Regards

Errol
by Errol
Sun Mar 23, 2014 10:57 pm
Forum: VCL
Topic: Stacked Bar Chart and Marks
Replies: 16
Views: 21561

Re: Stacked Bar Chart and Marks

Good morning Yeray Thanks for all your help on this topic, and I look forward to tools to control basic marks positioning without having to go down the custom positioning route. I have another problem which puzzles me - I am unable to hide the marks on my self-stacked bar chart. In the code snippet,...
by Errol
Tue Mar 18, 2014 11:44 pm
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good Morning Yeray Thank you for your considered reply, and agreement to at forward these suggestions to your wish list. However, I am not sure that your argument against ValueIndex for a multiple-series legend is entirely justified. Also note it wouldn't be very coherent to have an argument called ...
by Errol
Tue Mar 18, 2014 4:27 am
Forum: VCL
Topic: Controlling the Position of Stacked Bar Charts
Replies: 1
Views: 3175

Controlling the Position of Stacked Bar Charts

Is there currently any method of controlling the horizontal position of stacked bar charts? For instance, if a scientist were to measure a number of parameters at irregular time intervals, and wanted to display each set of parameters using a stacked bar chart, with the x-axis representing the time a...
by Errol
Tue Mar 18, 2014 4:20 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good morning Yeray Your suggested solution to the problem of the unknown position of the legend symbol worked - thank you. However, I have the following comments. 1. Rather than having to invoke an OnGetLegendText event, this problem would be better solved if the value of ValueIndex passed to a Lege...
by Errol
Sat Mar 15, 2014 5:12 am
Forum: VCL
Topic: Stacked Bar Chart and Marks
Replies: 16
Views: 21561

Re: Stacked Bar Chart and Marks

Good afternoon Yeray

Is there any way to left justify and offset marks on a (vertical) stacked bar chart. Properties such as MarksLocation and Marks.TextAlignment seem to control placement in the vertical direction, but I would like to control in the horizontal direction.

Regards

Errol
by Errol
Sat Mar 15, 2014 2:01 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good morning Yeray Further to my previous post, I am still having problems with using the Chart1.Legend.Symbol.OnDraw event when the legend is derived from a number of series rather than a single series. In the multiple series case, the value of ValueIndex in the OnDraw event is always set to -1, an...
by Errol
Thu Mar 13, 2014 4:45 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Hi Yeray Thanks for your suggestions. However, creating a separate series for each legend item causes another problem. I use an OnDraw event to draw the pattern, foreground and background colors, as follows: self.Owner.Chart.Legend.Symbol.OnDraw:=LegendDraw; Unfortunately, the value of ValueIndex in...
by Errol
Mon Mar 10, 2014 2:51 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Good morning Yeray Here is the modified code that exhibits the offset legend. I have put the data record by record into two memory tables to be able to use the DataSource, LabelsSource and similar commands. Best regards Errol unit Legend_Test; interface uses Windows, Messages, SysUtils, Variants, Cl...
by Errol
Fri Mar 07, 2014 6:06 am
Forum: VCL
Topic: Stacked Bar Chart and Legend
Replies: 19
Views: 21402

Re: Stacked Bar Chart and Legend

Hi Yeray

Sorry I meant to attach a diagram but forgot, so here it is. I would like to write the text immediately following the legend symbol, rather than having it justified to the right side of the legend text space as at present.

Best regards

Errol
BarChart_Legend.png
BarChart_Legend.png (20.81 KiB) Viewed 16423 times