Search found 52 matches

by bairog
Thu Sep 19, 2019 3:20 pm
Forum: .NET
Topic: Print preview dialog is not correctly translated to Russian/Spanish/French
Replies: 1
Views: 165

Print preview dialog is not correctly translated to Russian/Spanish/French

Hello. If switch language to russian print preview dialog appears not correctly translated: Steema.TeeChart.Languages.Russian.Activate(); In the upper-left corner Printer label looks truncated. On the first tab Page , Margin Units and 1/100 Inch are not translated. https://i.ibb.co/xmZRcgX/1.jpg On ...
by bairog
Thu Aug 22, 2019 9:12 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 536

Re: Changing line series color in runtime is not working

Christopher wrote:
Thu Aug 22, 2019 8:11 am
Ah, so you don't want all the Pointers to be of the same color? In which case, change the following line:
I supposed it is possible without saving current line color without separate variable..
Thank you, it's working.
by bairog
Thu Aug 22, 2019 8:02 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 536

Re: Changing line series color in runtime is not working

In this scenario there is no need to complicate matters with the series color at all, i.e. With your code all points are Blue (some of them should be Tomato or Gold as the corresponding lines are): https://i.ibb.co/RPK5KB7/1.jpg No, there is no progress to report. Sad to hear. Hope something will c...
by bairog
Thu Aug 22, 2019 5:41 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 536

Re: Changing line series color in runtime is not working

Now I'm using the following code (points >=6 should be always Gold, points >=8 should be always Tomato): using System; using System.Drawing; using System.Windows.Forms; namespace TeeChartColorTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); //line1.Color = line1.Poi...
by bairog
Wed Aug 21, 2019 8:59 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 536

Changing line series color in runtime is not working

I've faced a strange issue while changing line series color in runtime. I'm using tChart1_ClickLegend event to show ColorPickerDialog where user can select a color for a clicked line and it's points: private void tChart1_ClickLegend(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Lef...
by bairog
Wed Aug 21, 2019 8:03 am
Forum: .NET
Topic: How to cast Steema.TeeChart.Chart class to Steema.TeeChart.TChart class
Replies: 1
Views: 220

How to cast Steema.TeeChart.Chart class to Steema.TeeChart.TChart class

I have several charts (instances of Steema.TeeChart.TChart class) on my form (let's say tChart1, tChart2, etc.). I have TChart_ClickSeries(object sender, Series s, int valueIndex, MouseEventArgs e) method which I want to use for all charts. And in this method I need to check for what chart exactly i...
by bairog
Tue Aug 13, 2019 10:07 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

okay, well, another variation on an earlier technique seems to work in these circumstances, i.e. So we've finally returned to using Zoomed and UndoneZoom events :) Looks like it's working now, many thanks. P. S. As I can see this code is in fact manually calculating FirstVisibleIndex and LastVisibl...
by bairog
Tue Aug 13, 2019 6:21 am
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 2739

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

Ok, I got it. And some words about release policy regarding that new 6 .NET Core assemblies. When .NET Core 3.0 is released in September are you planning to have the same release name and build number for all your assemblies? Or .NET Framework assemblies and .NET Core assemblies will have independen...
by bairog
Tue Aug 13, 2019 5:31 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Try setting the Labels separation to zero, e.g. Up to 60 points it's working: https://i.ibb.co/Z2dNSG3/1.jpg But for example for 70 points (when labels start to overlap each other) - chart itself performs labels thinning (my function Bottom_GetAxisDrawLabel is disabled here): https://i.ibb.co/HDWZ2...
by bairog
Mon Aug 12, 2019 10:55 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Unfortunatelly I'm here again.. In fact instead of your code: if ((line1.LastVisibleIndex - line1.FirstVisibleIndex) > maxDisplayedLabelsForBottomaAxis) { var label = line1.Labels.IndexOf(e.Text); e.DrawLabel = label % 2 == 0; } I'm using: if ((line1.LastVisibleIndex - line1.FirstVisibleIndex) > max...
by bairog
Mon Aug 12, 2019 9:05 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Well, you could check the incoming Text with the Labels collection you already have, e.g. Well, not so elegant as I thought - I supposed I can use something like (sender as Steema.TeeChart.Axis).CalcXXXXValue(e.X) And now I cannot dispose that Labels collection until my application closes. But it's...
by bairog
Mon Aug 12, 2019 8:43 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

How does that work for you? Looks like DrawAxisLabel event is forking fine. But what is my labels are not like Point #{i} , but like First point , Second point , etc.. In that case i cannot rely on: var labelIndex = int.Parse(e.Text.Last().ToString()) How can I determine labelIndex inside DrawAxisL...
by bairog
Mon Aug 12, 2019 5:20 am
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 2739

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

I've obtained TeeChart.licenses with teechart.winform support and watermark disappeared. Everything is working exactly as it works in .NET Framework - great. BTW. You now have six new NuGet packages (TeeChart for .NET Core 3.0 Pro/Business for .Net Core 3.0, .Net Core 3.0 Windows Forms and .Net Core...
by bairog
Mon Aug 12, 2019 5:00 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Once again: I want to avoid labels overlapping on bottom axis and ensure two adjacent labels have a free space between them. So labels are thinned to maximum 20 labels simultaneously visible. As I can see from my experiments: In BeforeDraw event FirstVisibleIndex/LastVisibleIndex have incorrect valu...
by bairog
Fri Aug 09, 2019 12:43 pm
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 1228

Re: FirstVisibleIndex and LastVisibleIndex while zooming

I can't see what is working incorrectly here. When you zoom in first time and number of currently displayed points is lower than 20 (in your gif from point 11 to point 19) every label on bottom axis should be drawn (because 19 - 11 < 20). In your gif every second label is drawn. That is because of ...