Line series data in tabular format
Line series data in tabular format
Hi.
Each line series has a DataSource property, which can be accessed to obtain the Dataset of associated values. This dataset can then be 'fed' to a DataGridView to display the chart series data in tabular format.
Is there a more 'automatic/dynamic' manner in which a chart series data can be dislayed in tabular format - perhaps without having to involve any other .NET control?
Also note that when new data arrives in a series, and I 're-get' the associated DataSource and feed that into the DataGridView control again, the new samples that were added to the chart series since I obtained the DataSet the first time around, are not displayed in the DataGridView. Is there something else I need to do in order to obtain the DataSet from the chart series with the latest data?
thanks!
Ben.
Each line series has a DataSource property, which can be accessed to obtain the Dataset of associated values. This dataset can then be 'fed' to a DataGridView to display the chart series data in tabular format.
Is there a more 'automatic/dynamic' manner in which a chart series data can be dislayed in tabular format - perhaps without having to involve any other .NET control?
Also note that when new data arrives in a series, and I 're-get' the associated DataSource and feed that into the DataGridView control again, the new samples that were added to the chart series since I obtained the DataSet the first time around, are not displayed in the DataGridView. Is there something else I need to do in order to obtain the DataSet from the chart series with the latest data?
thanks!
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
This can already be done as shown in the What's New?\Welcome !\New Chart Tools\Data Table example at the features demo, available at TeeChart's program group.
An alternative would be doing what's shown in the All Features\Welcome !\Components\Chart Grid example.
This can already be done as shown in the What's New?\Welcome !\New Chart Tools\Data Table example at the features demo, available at TeeChart's program group.
An alternative would be doing what's shown in the All Features\Welcome !\Components\Chart Grid example.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
DataTable tool was implemented for v3 and therefore is not available in v2. However the Chart Grid example is already available in v2.
Have you found the features demo? You should find it at the start menu -> all programs -> Steema TeeChart for .NET v2 -> Feature demo.
DataTable tool was implemented for v3 and therefore is not available in v2. However the Chart Grid example is already available in v2.
Have you found the features demo? You should find it at the start menu -> all programs -> Steema TeeChart for .NET v2 -> Feature demo.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Narcís,
On the version of the Features Demo that I have installed, under All Features->Welcome!->Components, I only see the following options/examples:
Chart Listox
Commander
Gallery
Text Source
XML Import Source
... there is no option for Chart Grid.
Is it possible you can point me to the Chart Grid example via an alternate link?
thanks,
Ben.
On the version of the Features Demo that I have installed, under All Features->Welcome!->Components, I only see the following options/examples:
Chart Listox
Commander
Gallery
Text Source
XML Import Source
... there is no option for Chart Grid.
Is it possible you can point me to the Chart Grid example via an alternate link?
thanks,
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Can you please try downloading latest TeeChart for .NET v2 maintenance release available at the client area?
Thanks in advance.
Can you please try downloading latest TeeChart for .NET v2 maintenance release available at the client area?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Sorry if my explanation wasn't clear enough. 8th October releases is an update build, not a full maintenance release. Last full version release is 6th March 2008. Could you please try downloading this version?
Thanks in advance.
Sorry if my explanation wasn't clear enough. 8th October releases is an update build, not a full maintenance release. Last full version release is 6th March 2008. Could you please try downloading this version?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
You can download TeeChart for .NET v3 fully functional evaluation version here:
http://www.steema.com/downloads/form_tch_net.html
You can download TeeChart for .NET v3 fully functional evaluation version here:
http://www.steema.com/downloads/form_tch_net.html
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
OK, thanks Narcís.
I have another enhancement I need to make and it involves being able to allow users to specify the font for X and Y axis labels. In our implementation, we have a maximum of 6 y-axes and 2 timescales (x-axes) that can be configured. Before the font requirement, we could use fixed constants to adjust the relative positions of the y-axes so that they could be spaced far enough apart from each other, for aesthetics (i.e. ensuring labels don't overlap with adjacent axes, etc). Now, allowing the user to configure the font for the labels on each axis, means that the spacing algorithm now needs to take into account the size of the labels and axis tick lengths, based on the font the user has conifigured. Do you recommend using Graphics.MeasureString(...) or the TextRenderer.MeasureText(...) mechanisms for calculating the gap (in pixels?) required between the multiple axes, or is there another method/technique you can recommend, in order to establish a perdictable and consistent multiple axis spacing algorithm?
Note, right now I'm using the following 'basic' mechanism to space the multiple y-axes
const int cEXTRA_MARGIN = 18;
const int cEXTRA_POS = 36;
const int cYAXIS_MAX_LABEL_SIZE = 50;
foreach (YAxis y in this.chartControl.YAxes)
{
DNAAxis yAxis = y.Axis;
if (yAxis != null &&
yAxis.Axis != null)
{
yAxis.Axis.PositionUnits = Steema.TeeChart.PositionUnits.Pixels;
yAxis.Axis.RelativePosition = nextLeft;
yAxis.Axis.Labels.CustomSize = cYAXIS_MAX_LABEL_SIZE;
nextLeft = nextLeft - cYAXIS_MAX_LABEL_SIZE - yAxiss.Axis.Ticks.Length - cEXTRA_POS;
this.tChart.Panel.MarginLeft = (-1 * nextLeft);
yAxis.Axis.StartPosition = 0;
yAxis.Axis.EndPosition = chartRect.Height;
yAxis.Axis.Visible = true;
}
}
Ben.
I have another enhancement I need to make and it involves being able to allow users to specify the font for X and Y axis labels. In our implementation, we have a maximum of 6 y-axes and 2 timescales (x-axes) that can be configured. Before the font requirement, we could use fixed constants to adjust the relative positions of the y-axes so that they could be spaced far enough apart from each other, for aesthetics (i.e. ensuring labels don't overlap with adjacent axes, etc). Now, allowing the user to configure the font for the labels on each axis, means that the spacing algorithm now needs to take into account the size of the labels and axis tick lengths, based on the font the user has conifigured. Do you recommend using Graphics.MeasureString(...) or the TextRenderer.MeasureText(...) mechanisms for calculating the gap (in pixels?) required between the multiple axes, or is there another method/technique you can recommend, in order to establish a perdictable and consistent multiple axis spacing algorithm?
Note, right now I'm using the following 'basic' mechanism to space the multiple y-axes
const int cEXTRA_MARGIN = 18;
const int cEXTRA_POS = 36;
const int cYAXIS_MAX_LABEL_SIZE = 50;
foreach (YAxis y in this.chartControl.YAxes)
{
DNAAxis yAxis = y.Axis;
if (yAxis != null &&
yAxis.Axis != null)
{
yAxis.Axis.PositionUnits = Steema.TeeChart.PositionUnits.Pixels;
yAxis.Axis.RelativePosition = nextLeft;
yAxis.Axis.Labels.CustomSize = cYAXIS_MAX_LABEL_SIZE;
nextLeft = nextLeft - cYAXIS_MAX_LABEL_SIZE - yAxiss.Axis.Ticks.Length - cEXTRA_POS;
this.tChart.Panel.MarginLeft = (-1 * nextLeft);
yAxis.Axis.StartPosition = 0;
yAxis.Axis.EndPosition = chartRect.Height;
yAxis.Axis.Visible = true;
}
}
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Yes, using MeasureString or TextWidth methods would be the way for calculating precise labels size.
Yes, using MeasureString or TextWidth methods would be the way for calculating precise labels size.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |