Search found 75 matches

by Errol
Wed Dec 07, 2022 4:36 am
Forum: VCL
Topic: Bar Chart self-stacked title vertical position
Replies: 1
Views: 5350

Bar Chart self-stacked title vertical position

In my previous topic, I was asking about the correct horizontal placement of a title above a self-stacked bar chart. In this post, I would like to be able to set the vertical position of the title just above the top axis of the bar chart, and have it remain there on scroll or zoom operations. As sho...
by Errol
Wed Dec 07, 2022 4:05 am
Forum: VCL
Topic: Bar Chart vertical self-stacked title position
Replies: 1
Views: 5380

Bar Chart vertical self-stacked title position

Good afternoon I have a persistent problem with placing a title above self-stacked bar charts. My code works correctly if the bottom axis has specified scaling, but not if the scaling is automatic. The (edited) procedure I use is shown below. procedure TPBQuickGraph.PlaceWellNames; var h, LLeft, LWi...
by Errol
Mon May 02, 2016 1:06 am
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Re: Bar Charts Custom Mark Placement

Everything is working nicely with the geological bar charts on a cross-section - thanks Yeray - except for one persistent error. I now place the well names as an Annotation above the wells. I call the PlaceWellNames procedure only in the OnBeforeDrawSeries event. If the horizontal axis scaling is no...
by Errol
Thu Apr 07, 2016 10:47 pm
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Re: Bar Charts Custom Mark Placement

Hello Yeray Thanks for your response - using ChartRect (rather than Axes.Top.PosAxis) worked fine for placing the annotations above the top axis. However, I have now decided to place the annotations just above the bar charts, to simplify placing a title on the top axis. However, when I use the comma...
by Errol
Wed Mar 30, 2016 11:30 pm
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Re: Bar Charts Custom Mark Placement

Thank you for your reply to my previous queries: Item 1 (axis labels not fully displayed): This was my error and now solved - many apologies. Item 2 (second bar chart showing on first): solved using Brush-Clear - thanks. Item 3 (annotation placement): I am unable to place the annotations just above ...
by Errol
Wed Mar 23, 2016 5:16 am
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Re: Bar Charts Custom Mark Placement

I have made significant progress on using self-stacked bar charts to represent well lithology. I found that I had to trigger an OnResize event to get everything looking good, as the chart is automatically resized when drawn on a large screen - something that a test program will not always pick up. H...
by Errol
Tue Mar 08, 2016 1:42 am
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Re: Bar Charts Custom Mark Placement

Thanks Yeray. Your suggestion regarding clearing the text in the mark works correctly. I also solved the problem of the mark placement. Because I was using an inverted vertical axis, I had to change the sign of the variable tmpSize used in your previous example code. Sorry about not picking that up ...
by Errol
Sun Mar 06, 2016 10:41 pm
Forum: VCL
Topic: Bar Charts Custom Mark Placement
Replies: 11
Views: 18344

Bar Charts Custom Mark Placement

I am using a self-stacked bar chart to represent lithology down a well. I create one series from a dataset to draw the lithology and place marks representing the lithology type. This works fine. I then create another series from the same dataset to place a short comment beside each lithology. I am u...
by Errol
Sun Feb 28, 2016 11:27 pm
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

I have extensively debugged my code, and the annotation texts now draw in the correct place, but only after the graph is manually refreshed, which I do not understand. My code is shown below. I have checked that the bar series are populated, but CalcXPos consistently calculates incorrect values. Cha...
by Errol
Wed Feb 24, 2016 4:40 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Thanks, your suggestion worked. However, now that I move from the test code to the actual code, I have more problems. My code is as follows, where InsertGeologicalSeries is similar to the test case code. I am attempting to calculate XPos and store the values in an array to use them in the ChartAfter...
by Errol
Mon Feb 22, 2016 4:03 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Hello Yeray Nearly there. I have annotations working but they do not appear until I either mouse over a chart or press Refresh. How do I get these to draw automatically. Also, can I remove the box around the text and just show the name, with no background. The annotations are also lined up to the le...
by Errol
Sun Feb 21, 2016 2:47 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Good afternoon Yeray Thank you for the MaxYValue suggestion to correct the autoscale. However, for the labels on the x-axis, I prefer a normal axis label format (e.g. every 200 from say 1800 to 4000, rather than labelling the position of each bar chart. Is this possible? I am also having some proble...
by Errol
Fri Feb 19, 2016 4:57 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Here is some test code to illustrate the problems I am experiencing. This is written using a memory table (kbmmemtable) as I have problems using TTable. This shows that the horizontal axis labels are the first mark for each chart, not numerical values of ProfileDistance. Also the automatic scale on ...
by Errol
Thu Feb 18, 2016 6:18 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Thank you Yeray for your suggestions. Using MinXValue worked a treat, as you can see in the attached image. However, I have a few small problems that I am still having problems with. Problem 1. Numeric labels on the x-axis I am using the following code snippet, but this does not put labels on the ax...
by Errol
Sat Feb 13, 2016 12:15 am
Forum: VCL
Topic: Stacked bar chart problems
Replies: 18
Views: 31879

Re: Stacked bar chart problems

Hello Yeray Thank you for your suggestions regarding developing a custom series to set the position of a self stacked bar chart on the horizontal axis. I have previously attempted to develop a custom series without success, but your suggestions may help, so I will continue with this. The request for...