Search found 23 matches
- Thu Jan 28, 2016 10:39 am
- Forum: .NET
- Topic: Line Series and Axes Automatic Scaling
- Replies: 1
- Views: 5242
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...
- Fri Nov 13, 2015 3:58 pm
- Forum: .NET
- Topic: Draw Trend Line to Chart Extents
- Replies: 4
- Views: 10289
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
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
- Tue Nov 10, 2015 9:44 am
- Forum: .NET
- Topic: Draw Trend Line to Chart Extents
- Replies: 4
- Views: 10289
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...
- Mon Nov 09, 2015 11:04 am
- Forum: .NET
- Topic: Draw Trend Line to Chart Extents
- Replies: 4
- Views: 10289
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 ...
- Wed Nov 04, 2015 3:23 pm
- Forum: .NET
- Topic: Using Logarithmic TrendFunction
- Replies: 2
- Views: 6576
Re: Using Logarithmic TrendFunction
Thank you - that is exactly what I need.
- Tue Nov 03, 2015 2:22 pm
- Forum: .NET
- Topic: Using Logarithmic TrendFunction
- Replies: 2
- Views: 6576
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...
- Tue Jan 15, 2013 2:01 pm
- Forum: VCL
- Topic: Custom drawing in OpenGL
- Replies: 1
- Views: 4420
Re: Custom drawing in OpenGL
I have found a solution to the problem. Using 'DisableRotation' before doing the drawing fixes it.
Frank
Frank
- Mon Jan 14, 2013 4:48 pm
- Forum: VCL
- Topic: Custom drawing in OpenGL
- Replies: 1
- Views: 4420
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...
- Tue Aug 28, 2012 9:07 am
- Forum: VCL
- Topic: Axis captions in OpenGL
- Replies: 1
- Views: 4374
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...
- Tue Aug 21, 2012 9:50 am
- Forum: VCL
- Topic: Multiple 3D Series plotted incorrectly
- Replies: 4
- Views: 8943
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...
- Mon Aug 20, 2012 1:58 pm
- Forum: VCL
- Topic: Multiple 3D Series plotted incorrectly
- Replies: 4
- Views: 8943
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...
- Wed Aug 15, 2012 1:05 pm
- Forum: VCL
- Topic: Multiple 3D Series plotted incorrectly
- Replies: 4
- Views: 8943
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...
- Wed Oct 01, 2008 2:13 pm
- Forum: VCL
- Topic: Simple Crossplot Bugs ?
- Replies: 4
- Views: 7118
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...
- Wed Oct 01, 2008 11:32 am
- Forum: VCL
- Topic: Simple Crossplot Bugs ?
- Replies: 4
- Views: 7118
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...
- Thu Jun 29, 2006 10:54 am
- Forum: VCL
- Topic: D2006 VCL .NET Object reference not set to instance....
- Replies: 3
- Views: 6245