Search found 1603 matches
- Thu Sep 07, 2023 9:01 am
- Forum: .NET
- Topic: How to draw four graphs and share an X-axis, and other related issues?
- Replies: 8
- Views: 48887
Re: How to draw four graphs and share an X-axis, and other related issues?
Hello, How do I get the width of the Y-axis from the leftmost part of the current graph?As shown below There are a couple of ways to do this, e.g. private void InitializeChart() { tChart1.Series.Add(typeof(Line)).FillSampleValues(); tChart1.Axes.Left.AxisPen.Visible = true; tChart1.Axes.Left.AxisPen...
- Tue Sep 05, 2023 7:50 am
- Forum: .NET
- Topic: How to draw four graphs and share an X-axis, and other related issues?
- Replies: 8
- Views: 48887
Re: How to draw four graphs and share an X-axis, and other related issues?
Hello, Question1:According to the example you gave, the following code is used. It is true that the four images can be aligned with the Y axis, but it does not seem to be set according to the maximum distance between the left and left borders of the maximum y axis.The Y-axis label is weighed down by...
- Fri Sep 01, 2023 10:11 am
- Forum: .NET
- Topic: How to draw four graphs and share an X-axis, and other related issues?
- Replies: 8
- Views: 48887
Re: How to draw four graphs and share an X-axis, and other related issues?
Hello, I want the label to wrap after 15 characters, but because the label is so long, it may need to wrap more than once. Before adding the labels to the Chart, I think it would be easy to parse the label string and add in a '\n' character every 15 characters. TeeChart will recognize these line bre...
- Thu Aug 31, 2023 7:58 am
- Forum: .NET
- Topic: How to draw four graphs and share an X-axis, and other related issues?
- Replies: 8
- Views: 48887
Re: How to draw four graphs and share an X-axis, and other related issues?
Hello, Question1:How do I find the maximum distance to the left of four graphs and set this maximum distance for all graphs. Or is there a better way to do this, so that if y is not aligned, the points on the top and bottom graph are not aligned A similar question is answered here . Question2:The X-...
- Wed Aug 30, 2023 10:56 am
- Forum: .NET
- Topic: Export to Flash Causes UE
- Replies: 1
- Views: 17087
Re: Export to Flash Causes UE
Hello Kris, We are NOT running as administrator and this is on the end-user machine so we cannot "install" TeeChart. it appears some additional defensive logic is needed here. Yes, I agree, although your app running on the client machine could ask for UAC administrator permissions. As with previous ...
- Wed Aug 30, 2023 8:45 am
- Forum: .NET
- Topic: How to set the X with category data?
- Replies: 19
- Views: 50905
Re: How to set the X with category data?
Hello, Hope to reply as soon as possible, thank you The subject of this help topic is 'How to set the X with category data?', but you are now asking for help in how to 'hand paint' lines on the Chart and how to customize bottom axis labels. Would you please be so kind as to split your questions into...
- Wed Aug 09, 2023 7:48 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
You're very welcome, please don't hesitate to contact us with any further questions.
- Fri Aug 04, 2023 8:49 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
- Fri Aug 04, 2023 8:03 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
If you have any ideas how to further improve my adjusted algorithm - please share it. Thank you. How about: private void TChart1_GetNextAxisLabel(object sender, GetNextAxisLabelEventArgs e) { var mod = _max % _increment; var local_max = _max; if(mod != 0) { local_max = _max + (_increment - mod); } ...
- Thu Aug 03, 2023 3:11 pm
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
But I would like to see function/property description right into IntelliSense. Could you share TeeChart.xml please. I've uploaded new NuGet packages containing the necessary xml documentation comments—they are only needed in .NET Framework, according to my tests, as Visual Studio is somehow able to...
- Thu Aug 03, 2023 8:34 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
A more generic solution would be: private void TChart1_GetNextAxisLabel(object sender, GetNextAxisLabelEventArgs e) { var max_labels = 20; var num = Utils.Round(_max / _increment); num = num >= max_labels ? max_labels : num; var multiplier = Utils.Round(_max / _increment / num); int GetValue(int ind...
- Thu Aug 03, 2023 7:52 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
Hello, for finer control, you can use the GetNextAxisLabel event, e.g. const int _increment = 350; const int _max = 20000; public Form1() { InitializeComponent(); var line1 = new Line(tChart1.Chart); var line2 = new Line(tChart1.Chart); var rnd = new Random(); for (int i = 0; i < 50; i++) { line1.Ad...
- Wed Aug 02, 2023 7:48 am
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
There's a Steema.TeeChart.chm file shipped in the TeeChart NuGet packages which has the xml documentation compiled into it. This is what we would suggest you use for 'offline' API documentation.
- Tue Aug 01, 2023 2:07 pm
- Forum: .NET
- Topic: Howto make automatic labels of the left axis be a multiple of some value
- Replies: 16
- Views: 86907
Re: Howto make automatic labels of the left axis be a multiple of some value
Hello,
in theory it: but it doesn't seem to work very well. What does work is setting max to a high value (e.g. 9000) and setting Separation to 0—here we can see that it leaves no minimum distance, as it should.
in theory it: but it doesn't seem to work very well. What does work is setting max to a high value (e.g. 9000) and setting Separation to 0—here we can see that it leaves no minimum distance, as it should.
- Tue Aug 01, 2023 1:41 pm
- Forum: .NET
- Topic: Cannot install Steema.TeeChart.NET 4.2023.7.5 nuget package for .NET Framework 4.8 WinForms application
- Replies: 1
- Views: 19723
Re: Cannot install Steema.TeeChart.NET 4.2023.7.5 nuget package for .NET Framework 4.8 WinForms application
Hello,
it's a bug in NuGet, as documented here. The workaround I use is to use the Package Manager Console, i.e.
it's a bug in NuGet, as documented here. The workaround I use is to use the Package Manager Console, i.e.
Code: Select all
PM> NuGet\Install-Package Steema.TeeChart.NET -Version 4.2023.7.5 -IncludePrerelease