End user XY charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Doug
Newbie
Newbie
Posts: 7
Joined: Tue Apr 13, 2004 4:00 am

End user XY charts

Post by Doug » Mon Aug 25, 2008 10:02 pm

Hello,

We are using the end-user chart designer (TChartEditor) for the creation of line and bar DBCharts, TChart v7.04.

Our x-axis values are non-sequential non-linear year values, e.g. 2002;2005;2020. When the chart is drawn, the x-axis displays the years as they are in the dataset, so the above example would be 2002;2005;2020. We want it to draw them in an XY fashion, so the above example would be 2002;2009;2020 or something similar.

I understand the AddXY method would be used in code to do this, how is it accomplished using TChartEditor?

Many thanks for any help.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Aug 26, 2008 8:38 am

Hi Doug,

I'm not sure about what you are trying to do but using chart editor you should set bottom axis increment. For more information on how to do that please read Tutorial 4 - Axis Control. Tutorials can be found at TeeChart's "Docs" folder.

Also please notice that much newer releases of TeeChart v7 are available at the client download area.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Doug
Newbie
Newbie
Posts: 7
Joined: Tue Apr 13, 2004 4:00 am

Post by Doug » Tue Aug 26, 2008 7:59 pm

Thanks for replying,

Basically we are trying to get an end-user XY chart. Is there a specific chart type from the gallery we need, or a property that needs to be set? I've tried changing the increment, but nothing quite seems to work.

I'll try the updates. Thanks again.

Lucien
Newbie
Newbie
Posts: 27
Joined: Thu Oct 11, 2007 12:00 am

Post by Lucien » Tue Aug 26, 2008 9:27 pm

1) Double click on selected series.
2) In Data Source Tab select Random let Num pts = 3
Then change to manual in the drop down list
3) Go to Data in main Tree of Chart Editor.
4) make sure the "X" Button bottom right corner is engaged.
5) No enter desired X Y Values.
6) From what I understand x's would be 1,2,3 and y values corresponding dates.
7) You can also set the Left axis to datetime in the series General tab.

This Tchart is Cool.
Regards
Lucien

Yeray
Site Admin
Site Admin
Posts: 8726
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Aug 27, 2008 8:17 am

Hi Lucien,

The following example is to show you could disable all the editor tabs except the SeriesData, so that the user will only see this tab and change series data.

Code: Select all

uses TeeEditCha;

procedure TForm1.Button1Click(Sender: TObject);
var HidenTabs: TChartEditorHiddenTabs;
begin
  HidenTabs := [cetMain, cetGeneral, cetAxis, cetTitles, cetLegend, cetPanel, cetPaging, cetWalls, cet3D, cetSeriesGeneral, cetSeriesMarks, cetAllSeries, cetExport, cetExportNative, cetTools, cetPrintPreview];
  ChartEditor1.HideTabs := HidenTabs;

  ChartEditor1.Execute;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Doug
Newbie
Newbie
Posts: 7
Joined: Tue Apr 13, 2004 4:00 am

Re: End user XY charts

Post by Doug » Mon Jun 22, 2009 8:21 pm

Hi there,

We are still having the problem. Maybe I can explain it a bit better now, with the right terminology.

Basically, is it possible to have date/time x-axis interpolated when using a TDBCrossTab series datasource? As an example, a dataset has the following values:

Time, Product, Sales
2010, "Coke", 100
2011, "Coke", 20
2012, "Coke", 150
2040, "Coke", 55

2010, "7up", 200,
2011, "7up", 22
2012, "7up", 133
2040, "7up", 87

So the time values jump from 2010 to 2040. Our DBCrosstab chart is fine except the values on the x-axis are 2010, 2011, 2012 and 2040 evenly spaced. We need the chart to show something like 2010, 2010, 2020, 2030, 2040 on the x-axis, automatically interpolating the intervening time years. Is this possible? The series type we are using is TAreaSeries.

Many thanks for any help.

Doug

Yeray
Site Admin
Site Admin
Posts: 8726
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: End user XY charts

Post by Yeray » Tue Jun 23, 2009 10:07 am

Hi Doug,

Probably your solution will be using custom labels in your bottom axis. But, if you would like a more accurately suggestion, please, try to reproduce the issue in a project (as simple as possible) we can run as-is here and attach it in this forums and we'll try to tell you what's happening.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply