Search found 23 matches

by JonM
Thu Jan 28, 2016 10:39 am
Forum: .NET
Topic: Line Series and Axes Automatic Scaling
Replies: 1
Views: 5205

Line Series and Axes Automatic Scaling

Hi There I'm adding a Styles.Line series to a chart which has the axes scaling set to Automatic. Adding the series is causing the X axis scaling to change with undesirable results. I would like to keep the Automatic scaling as it works well for the data series - is there a way to prevent it from cha...
by JonM
Fri Nov 13, 2015 3:58 pm
Forum: .NET
Topic: Draw Trend Line to Chart Extents
Replies: 4
Views: 10200

Re: Draw Trend Line to Chart Extents

Thank you - your code sample helped, particularly using SeriesXYPoint to change the line points.

I took a different approach with the maths:

As we know the X values of the new points (i.e. the right or left edge of the chart) I used the slope and Y intercept to calculate the Y values.

y = mx + c
by JonM
Tue Nov 10, 2015 9:44 am
Forum: .NET
Topic: Draw Trend Line to Chart Extents
Replies: 4
Views: 10200

Re: Draw Trend Line to Chart Extents

Hi Christopher Thank you for getting back to me. I already have some maths to calculate the slope and intercept - so that's all okay. My reason for using TrendFunction is to move away from our own maths and rely on the TeeChart library - so it seems a shame to use a combination of both. Please can y...
by JonM
Mon Nov 09, 2015 11:04 am
Forum: .NET
Topic: Draw Trend Line to Chart Extents
Replies: 4
Views: 10200

Draw Trend Line to Chart Extents

Hi Guys I am plotting a linear trend line with this: TrendFunction trendFunction =new TrendFunction(); trendLine = new Line(chart.Chart) { Function = trendFunction, DataSource = series }; Which is working nicely but the line is only drawn to the extents of the data in the series. Is it possible for ...
by JonM
Wed Nov 04, 2015 3:23 pm
Forum: .NET
Topic: Using Logarithmic TrendFunction
Replies: 2
Views: 6513

Re: Using Logarithmic TrendFunction

Thank you - that is exactly what I need.
by JonM
Tue Nov 03, 2015 2:22 pm
Forum: .NET
Topic: Using Logarithmic TrendFunction
Replies: 2
Views: 6513

Using Logarithmic TrendFunction

Hi I'm trying to draw a Line using the Logarithmic style TrendFunction but cannot get anything to display. This is the code that I am using: TrendFunction logFunction = new TrendFunction(); logFunction.TrendStyle = TrendStyles.Logarithmic; Line logLine = new Line(chartInstance.Chart) {Function = log...
by JonM
Tue Jan 15, 2013 2:01 pm
Forum: VCL
Topic: Custom drawing in OpenGL
Replies: 1
Views: 4377

Re: Custom drawing in OpenGL

I have found a solution to the problem. Using 'DisableRotation' before doing the drawing fixes it.
Frank
by JonM
Mon Jan 14, 2013 4:48 pm
Forum: VCL
Topic: Custom drawing in OpenGL
Replies: 1
Views: 4377

Custom drawing in OpenGL

I currently have a 3D point series chart which has a custom bit of drawing on it under a AfterDraw event. This custom drawing is not part of the 3D and is static as the chart is rotated in 3D. I want to update the chart to use OpenGL. I have initiated the OpenGl and it works fine except for the cust...
by JonM
Tue Aug 28, 2012 9:07 am
Forum: VCL
Topic: Axis captions in OpenGL
Replies: 1
Views: 4344

Axis captions in OpenGL

Hi I have been making a 3D OpenGL plot. The axis caption titles for the Depth and Right Axes are not plotted in the correct position (I believe this is a know bug). Hence I am trying to custom draw these titles using an after draw. The problem is I cannot figure out how to accurately find the positi...
by JonM
Tue Aug 21, 2012 9:50 am
Forum: VCL
Topic: Multiple 3D Series plotted incorrectly
Replies: 4
Views: 8838

Re: Multiple 3D Series plotted incorrectly

Sandra We have look into this problem a bit more and find that when the Transparency is set to zero then the OpenGL works. With the code in the debugger the problem is in the TeeGLCanvas.pas unit function Function TGLCanvas.BeginBlending(const R:TRect; Transparency:TTeeTransparency):TTeeBlend; begin...
by JonM
Mon Aug 20, 2012 1:58 pm
Forum: VCL
Topic: Multiple 3D Series plotted incorrectly
Replies: 4
Views: 8838

Re: Multiple 3D Series plotted incorrectly

Hi Sandra Thanks for this I was not aware Tchart had OpenGL. I tried adding the OpenGl component to my project, but this on run would crash the program with an Object reference. I then went back and looked at your project you sent me. This looked like a standard VCL project so I created a new .Net V...
by JonM
Wed Aug 15, 2012 1:05 pm
Forum: VCL
Topic: Multiple 3D Series plotted incorrectly
Replies: 4
Views: 8838

Multiple 3D Series plotted incorrectly

Hello I am trying to make a 3D plot of several series. I basically have one TTriSurfaceSeries and several TPoint3DSeries (plotted as points). I have made the TTriSurfaceSeries semi transparent and would like to show the TPoint3DSeries above and below the TTriSurfaceSeries surface depending on the da...
by JonM
Wed Oct 01, 2008 2:13 pm
Forum: VCL
Topic: Simple Crossplot Bugs ?
Replies: 4
Views: 7059

Xlplot problem

Narcis Thanks sorted the text position problem. Here is the code which causes the problem. I am only using one series per plot with color points. I could potentially have many different colors so do not want to create a series per color. uses Series; procedure TForm1.FormCreate(Sender: TObject); var...
by JonM
Wed Oct 01, 2008 11:32 am
Forum: VCL
Topic: Simple Crossplot Bugs ?
Replies: 4
Views: 7059

Simple Crossplot Bugs ?

I have a couple of what looks like bugs in some simple crossplots. I am using Tchart pro 7.11 with Delphi 2007 Bugs are Top plot the Y axis label overwrites the scale numbers. Only occurs when bottom number is a whole number. Scales can be anything so I have left on the auto scaling. http://www.sene...
by JonM
Thu Jun 29, 2006 10:54 am
Forum: VCL
Topic: D2006 VCL .NET Object reference not set to instance....
Replies: 3
Views: 6197

Hello Narcís,

That's done the trick nicely.

I did go to the Customer Downloads section but the first level link still said V7.07 so i didn't look any further.

Perhaps you should update this link.

Many thanks - we can breath again.

Jon
:lol: