Search found 16 matches

by jfrtx
Tue May 11, 2021 3:04 pm
Forum: .NET
Topic: TeeChart .NET WPF SmoothingMode
Replies: 1
Views: 4930

TeeChart .NET WPF SmoothingMode

Hi,

In WinForms we are able to set the

Code: Select all

tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmootingMode.HighSpeed;
Is there an equivalent in WPF for .NET 5? I cannot seem to find it.
by jfrtx
Fri May 07, 2021 2:01 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

The figure above is not from TeeChart, it was generated from Matlab. I was using it as an example for a continuous legend bar. The post was to ask for Steema to add a HeatMap series that has the following signature double Nx = 101; double Ny = 201 double[] x = new double[Nx]; double[] y = new double...
by jfrtx
Thu May 06, 2021 8:42 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Hi Christopher, In the examples grid data we have been using you will notice that the y and z data is on a RegularGrid. It ends up being slightly irregular due to numerical rounding. It would be nice if ColorGrid would treat this as a RegularGrid, i.e. compute min, max, and step of x and z values an...
by jfrtx
Tue May 04, 2021 5:39 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

The two namespaces are still confusing and I will review your examples. As a final question, How does one control the axis labels using your example from the 4/30 post where I am using a regularGrid and redefining the axis labels? For example, in the example you used, if you set int nx = 101; int nz...
by jfrtx
Mon May 03, 2021 11:56 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Christopher, I noticed that your WPF namespace is: xmlns:WPF="clr-namespace:Steema.TeeChart.WPF;assembly=TeeChart.WPF" whereas I am using xmlns:WPF="clr-namespace:TeeChart.Xaml.WPF;assembly=TeeChart.Xaml.WPF" I guess this get's back to one of your earlier posts. For .NET5 WPF apps, should we use Tee...
by jfrtx
Mon May 03, 2021 3:03 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

I am still having problems. Can you attach your source code or post to github?

what is your xaml namespace "WPF" set to?

Code: Select all

xmlns:WPF="clr-namespace:TeeChart.Xaml.WPF;assembly=TeeChart.Xaml.WPF"
by jfrtx
Sun May 02, 2021 12:07 am
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Hi Christopher, Thanks for all your helpful replies. I am trying to implement your latest suggestions with reference to using a RegularGrid and setting tChart1.Axes.Bottom.Labels. To experiment I have followed your example in which you define the colorgrid in code behind. I can do this in .NET Frame...
by jfrtx
Thu Apr 29, 2021 3:02 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Thanks, I understand that setting colorgrid.IrregularGrid = true works. But, as you can see from the example, the data is regular except for numerical precision. It would be best that if the user sets IrregularGrid=false then ColorGrid should treat the data as regular and then find the stepsize. I a...
by jfrtx
Tue Apr 27, 2021 5:54 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Hi Christopher,

I am not sure I understand your question. Are you asking if the code snippet I supplied for a change in the constructor compiles and runs?
Yes, I was able to compile and run the changes in the example project that you created.
by jfrtx
Tue Apr 27, 2021 4:03 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Hello, I changed your BindingDataPropertiesViewModel constructor slightly to show a problem I am seeing. I expect to see a ColorGrid where both axis range from (-1 to 1). Instead I see something that is partially displayed in the upper right half. In this example dx=0.2 and dz=0.1. Therefore, the ax...
by jfrtx
Mon Apr 26, 2021 4:19 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

I tried the following but did not get a ColorGrid plot. It looked more like a (x,y) scattered plot. I think the problem is associated with not setting IrregularGrid to false. I do not see how to do this since colorgrid is a series and not Steema.TeeChart.WPF.Styles. <Grid> <teechart:TChart x:Name="t...
by jfrtx
Mon Apr 26, 2021 4:04 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

BindingObservableCollection.xaml
by jfrtx
Mon Apr 26, 2021 3:55 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

Do I use Series3DData and do I setup the binding on X, Y, Z as shown

series:Series3DData X="{Binding XData}" Y="{Binding YData}" Z="{Binding ZData}"

When I do this I get a binding error during runtime.
by jfrtx
Mon Apr 26, 2021 3:41 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

I did not see an example for binding 3D data (x,y,z).
by jfrtx
Mon Apr 26, 2021 3:11 pm
Forum: .NET
Topic: WPF ColorGrid DataBinding
Replies: 30
Views: 39190

Re: WPF ColorGrid DataBinding

How do I databind x,y,z that is used in the ColorGrid to a viewmodel?