Search found 35 matches

by Errol
Mon Oct 15, 2018 9:02 pm
Forum: VCL
Topic: Chart title placement when multiple top axes
Replies: 1
Views: 854

Chart title placement when multiple top axes

Good morning I have a chart that uses two top axes, TopAxis and CustomAxes[1]. When data is plotted against TopAxis, the chart title is correctly placed above the axis labels and axis title. However, when data is plotted only against CustomAxes[1], the chart title is placed just above the top axis, ...
by Errol
Mon Oct 15, 2018 2:54 am
Forum: VCL
Topic: Displaying Dashed Lines with data-dense series
Replies: 8
Views: 2739

Re: Displaying Dashed Lines with data-dense series

Good afternoon I seem to have solved the problem of displaying dashed line with data-dense series, and that is to use a Line Series rather than a Fast Line Series, and to set DrawStyles to dsAll and Pointer.Visible to False. See attached DashedLines example program. I then use a Point series to draw...
by Errol
Wed Oct 03, 2018 5:02 am
Forum: VCL
Topic: Displaying Dashed Lines with data-dense series
Replies: 8
Views: 2739

Re: Displaying Dashed Lines with data-dense series

Hello Thank you for your suggestions in the previous post and apologies for the long delay before replying. I have implemented the down-sampling code in the attached project, but it does not work as well as hoped. Values are omitted, so that the down-sampled line does not match the measured line. Al...
by Errol
Tue Sep 04, 2018 2:35 am
Forum: VCL
Topic: Displaying Dashed Lines with data-dense series
Replies: 8
Views: 2739

Re: Displaying Dashed Lines with data-dense series

Good morning Thanks for your suggestion. I will certainly try this although I cannot get your code to work because of some conflict between VCLTee.TeCanvas and TeCanvas which I do not understand. Here is the error I get when trying to run the test program attached. I appreciate your assistance here....
by Errol
Sat Sep 01, 2018 9:25 am
Forum: VCL
Topic: Synchronizing Axes
Replies: 8
Views: 1974

Re: Synchronizing Axes

Good evening I am pleased to report that I have enabled axis synchronization with changes of auto-scaling, axis inversion, and logarithmic axes. I have attached some relevant code below as there is some tricky code when dealing with log axes, if other people are interested. This does not apply to my...
by Errol
Sat Sep 01, 2018 2:32 am
Forum: VCL
Topic: Displaying Dashed Lines with data-dense series
Replies: 8
Views: 2739

Displaying Dashed Lines with data-dense series

Good morning I use TeeChart to present scientific data measured down a geothermal well. With modern equipment, data can be collected at very closeintervals, as small as 6 inches (15 cm) which would result in over 13,000 data points in a series! If all data points are displayed, a solid dark line is ...
by Errol
Fri Aug 31, 2018 2:12 pm
Forum: VCL
Topic: Marks Placement when using mouse wheel
Replies: 6
Views: 1872

Re: Marks Placement when using mouse wheel

Good evening
Thank you for your assistance here. I have implemented your suggestions and it works fine now. Obvious really, once one knows how to do it, but I find the TeeChart events a bit daunting at times.
Best regards
Errol
by Errol
Fri Aug 31, 2018 12:14 pm
Forum: VCL
Topic: Synchronizing Axes
Replies: 8
Views: 1974

Re: Synchronizing Axes

Good evening I have implemented your suggestions and have the top and bottom axes synchronizing nicely when changing the autoscaling of each axis. However I am baffled by the Invert behaviour - the relevant series disappear (nothing to do with axis synchronization). Clearly doing something wrong aga...
by Errol
Thu Aug 23, 2018 4:48 am
Forum: VCL
Topic: Marks Placement when using mouse wheel
Replies: 6
Views: 1872

Re: Marks Placement when using mouse wheel

And here is the final image. Each time, Preview shows the three images correctly, but when I submit the post, the attachments vanish
by Errol
Thu Aug 23, 2018 4:46 am
Forum: VCL
Topic: Marks Placement when using mouse wheel
Replies: 6
Views: 1872

Re: Marks Placement when using mouse wheel

I seem unable to attach the three images so I have attached images 2 and 3 here.
The attachment Comment_Location_MouseWheelDown.png is no longer available
Comment_Location_MouseWheelDown.png
Comment location after mouse wheel down
Comment_Location_MouseWheelDown.png (4.39 KiB) Viewed 1864 times
by Errol
Thu Aug 23, 2018 4:43 am
Forum: VCL
Topic: Marks Placement when using mouse wheel
Replies: 6
Views: 1872

Re: Marks Placement when using mouse wheel

Good afternoon Thanks for your suggestions. I have tried calling Chart.Draw at various places - in PlaceComments and in OnMouseWheel, to no avail. I have attached the images again. I hope they get through this time. Comment_Correct_Location.png Comment_Location_MouseWheelDown.png Comment_Location_Mo...
by Errol
Wed Aug 22, 2018 4:09 am
Forum: VCL
Topic: Synchronizing Axes
Replies: 8
Views: 1974

Re: Synchronizing Axes

I apologize for my last post - the error was mine, by assigning different Axis minimum and maximum values at different parts of the code, now corrected. I still have a problem whenever I change the bottom axis Automatic status with Synchronize checked. The code draws the top axis labels using the pr...
by Errol
Wed Aug 22, 2018 1:12 am
Forum: VCL
Topic: Synchronizing Axes
Replies: 8
Views: 1974

Re: Synchronizing Axes

Thanks for the reply. I have fixed the reset caused by ApplyLogLabels by calling ApplyLogLabels(False). However, I do not understand your proposed solution using bottom axis positions and values to populate the top axis. In the example in the Sync_Axes project, the position range of the bottom axis ...
by Errol
Mon Aug 20, 2018 6:17 am
Forum: VCL
Topic: Marks Placement when using mouse wheel
Replies: 6
Views: 1872

Marks Placement when using mouse wheel

Good evening I use stacked bar charts to represent a geological column. Besides each section (strata) I place a comment using the code below: procedure TPBQuickGraph.PlaceComments; var s, i, tmpSize, LIndex, LMarksHeight : integer; LComment: string; begin Chart.Draw; LIndex := 0; // legend included ...
by Errol
Sun Aug 19, 2018 11:52 pm
Forum: VCL
Topic: How to clear all datasources in a chart
Replies: 4
Views: 1853

Re: How to clear all datasources in a chart

Hi Sandra On further digging, I find that the number of data sources still keeps increasing, as indicated by IDataSources.Count in procedure TCustomDBChart.RefreshData, even after using your suggested code. My graph code which I inherited is quite complex and I cannot work out why the data sources k...