Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
shift drawing grid surface
shift drawing grid surface
Post Reply
1
2
Next
Jump To Page
shift drawing grid surface
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Rinat Talibullin
Rinat Talibullin
posted 13 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 1
I remember this exception, I've got such when worked with line series.
Maybe this happened because I've added serie first, then changed its settings and then tried to add again? And in that case exception doesn't throw?
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
In general a series is not supposed to be added twice to a chart (or added to different charts).
In the following code the second Add method throws an ArgumentException with message "The specified element is already added to the document".
NGridSurfaceSeries series = (NGridSurfaceSeries)chart.Series.Add(SeriesType.GridSurface);
chart.Series.Add(series);
It is strange that you've managed to add the same series to a chart two times.
Best Regards,
Nevron Support Team
Reply
Like
0
Rinat Talibullin
Rinat Talibullin
posted 13 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 1
I have found the problem. It was my mistake, I've added series twice like
NGridSurfaceSeries surface = (NGridSurfaceSeries)nChartDin.Charts[7].Series.Add(SeriesType.GridSurface);
and after all manipulations
nChartDin.Charts[7].Series.Add(surface);
But why one of the series was empty?
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Maybe if you create a small test application and copy-paste chart related code in it the same problem will appear at some point. This is pretty much what we did, but we don't have the full source.
Regarding your question:
>> What properties of the chart could affect series in such way?
The chart is not supposed to act like this in a regular situation. It looks as if there is another (invisible) surface series before the visible surface, but you said this is not the case. (Just to make sure - you can clear the series collection before you add the surface series.) Apart from this - there are many other settings that affect the axes, and the cause might also be some problem in our code so it is not possible to tell. We must have some way to reproduce the problem.
By the way, did you try the same code with a recent version of Nevron Chart?
Best Regards,
Nevron Support Team
Reply
Like
0
Rinat Talibullin
Rinat Talibullin
posted 13 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 1
Actually, it's pretty complicated. My application uses database and it's really hard to send you whole project. I'll think if its possible to send you part of this project.
What properties of the chart could affect series in such way?
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Is it possible for you to send us a VS project that reproduces the problem? We created a test project with the source code that you sent us, but it works properly both with the latest version and with the version that you use (11.9.27.12).
Best Regards,
Nevron Support Team
Reply
Like
0
Rinat Talibullin
Rinat Talibullin
posted 13 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 1
No, there is no other series. If I try to add other series, I've got the same effect: every additional serie shifts on its size and then draws.
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Are there any other series in the series collection of chart[7]?
Best Regards,
Nevron Support Team
Reply
Like
0
Rinat Talibullin
Rinat Talibullin
posted 13 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 1
What could cause such problems?
I've tried mesh surface - it works fine in axis depth.
Reply
Like
0
Nevron Support
Nevron Support
posted 13 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
We tested the code with 11.9.27.12 and still the chart looked fine.
The Z size of the grid surface is 768 and normally the Depth Axis's range should be [0, 767]. This is what happens in our test project. However on the screenshot the depth axis's range is something like [0 - 1500]. This means that there is something outside this code that causes the problem.
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
1
2
Next
Jump To Page
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search