Search found 1218 matches

by Christopher
Tue Aug 13, 2019 6:40 am
Forum: .NET
Topic: ScrollPager too long
Replies: 5
Views: 2876

Re: ScrollPager too long

LebbingUser wrote:
Mon Aug 12, 2019 1:06 pm
But I got good news, I solved the problem!
That's excellent, I'm pleased to hear it!
LebbingUser wrote:
Mon Aug 12, 2019 1:06 pm
Thank you very much for your help!
If only helping other people was as simple as that :D
by Christopher
Mon Aug 12, 2019 11:41 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

bairog wrote:
Mon Aug 12, 2019 10:55 am
So how to deal with that? Is there a way to disable automatic thinning that is performed by chart itself?
Try setting the Labels separation to zero, e.g.

Code: Select all

            tChart1.Axes.Bottom.Labels.Separation = 0;
            tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text;
by Christopher
Mon Aug 12, 2019 9:34 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

And now I cannot dispose that Labels collection until my application closes. You don't have to use the Labels collection, unless you want to. I've also modded the code so scrolling doesn't draw every label when less than 20 labels are shown: public partial class Form1 : Form { //max visible labels ...
by Christopher
Mon Aug 12, 2019 8:56 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

How can I determine labelIndex inside DrawAxisLabel event? I've tried e.LabelValue - but it is always 0 in my case.. Well, you could check the incoming Text with the Labels collection you already have, e.g. public partial class Form1 : Form { //max visible labels private const Int32 maxDisplayedLab...
by Christopher
Mon Aug 12, 2019 8:12 am
Forum: .NET
Topic: ScrollPager too long
Replies: 5
Views: 2876

Re: ScrollPager too long

But that is not my problem now. There has to be an option that extend my TChart as soon as I activate the ScrollPager. So I think I just have to check my Code and try to find the cause. Thank you very much and if you got an idea, just let me now. I'm afraid I'm still not entirely sure what your pro...
by Christopher
Mon Aug 12, 2019 8:09 am
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 7712

Re: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)

Regarding new customers and those who are going to renew their licenses - are you going to send them licenses that already support teechart.winform? Or like me they will need to contact sales@steema.com (that is too complicated to my mind)? When .NET Core 3.0 is released in September by Microsoft, ...
by Christopher
Mon Aug 12, 2019 8:05 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

P. S. If there is enother way to ensure two adjacent labels have a free space between them (e. g. tChart1.Axes.Bottom.Labels.Space = 10) - any help will be appreciated.. One alternative is this: public partial class Form1 : Form { //max visible labels private const Int32 maxDisplayedLabelsForBottom...
by Christopher
Fri Aug 09, 2019 12:26 pm
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

If I use BeforeDraw event - I have FirstVisibleIndex=0 and LastVisibleIndex=line1.Count after the first zoom. After the second zoom FirstVisibleIndex and LastVisibleIndex have values of the first zoom and so on. That makes impossible to calculate currently visible points inside DrawLabels function ...
by Christopher
Fri Aug 09, 2019 11:23 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Hello! Okay - first off, LastVisibleIndex is one off in LIne series because the line itself is considered as belonging to the next point - so, for example, if you scroll the chart so there's only one point visible, the visible part of the line which continues to the next point (which isn't visible) ...
by Christopher
Fri Aug 09, 2019 8:28 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 5719

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Hello! rather than using the Zoomed and UndoneZoom events, have you tried using the AfterDraw events? private void TChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { Text = $"FirstVisibleIndex: {line1.FirstVisibleIndex}, LastVisibleIndex: {line1.LastVisibleIndex}"; } private vo...
by Christopher
Fri Aug 09, 2019 8:13 am
Forum: .NET
Topic: Peak Shading Under a Curve
Replies: 1
Views: 2137

Re: Peak Shading Under a Curve

Can you please help me understand the best way to shade the area under the curve with a sloped baseline? I think the only way you're going to be able to do this is to derive a new Tool from our SeriesRegionTool and then adapt it to your needs. Unfortunately some of the key methods of the SeriesRegi...
by Christopher
Fri Aug 09, 2019 7:30 am
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 7712

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

In near future, when WinForms designer will be added to Visual Studio 2019, whether it will be necessary to add this file? I don't know. If the WinForm .NETCore designer has identical functionality to the WinForm .NET designer then this file may be necessary. We will have to wait to see. Looks like...
by Christopher
Thu Aug 08, 2019 3:23 pm
Forum: .NET
Topic: ScrollPager too long
Replies: 5
Views: 2876

Re: ScrollPager too long

Hello, I've tried to recreate your project using the following code: public partial class Form1 : Form { public Form1() { InitializeComponent(); InitializeChart(); } private void InitializeChart() { var line = new Line(tChart1.Chart); line.FillSampleValues(); } bool active = false; ScrollPager _scro...
by Christopher
Thu Aug 08, 2019 2:36 pm
Forum: .NET
Topic: Questions about teeChart Legend with enabled checkboxes
Replies: 1
Views: 2063

Re: Questions about teeChart Legend with enabled checkboxes

Hello,

I don't think what you ask is going to be possible with a standard legend - but of course there is the possibility of you writing your own custom legend. There's a very basic starter example you can read here.
by Christopher
Thu Aug 08, 2019 1:54 pm
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 7712

Re: Is it possible to use TeeChart (4.2019.3.15) in WinForms application (.NET Core 3 preview)

If I remove licenses.licx from my .NET Core app - all charts have evaluation watermarks. What's wrong with my code? P.S. Except for this - everything is working fine for now. The licenses.licx is unnecessary for TeeChart.NET Core as this file is only relevant to the Windows Forms designer and the W...