ZedGraph | Fork of John Champion 's ZedGraph charting framework
kandi X-RAY | ZedGraph Summary
kandi X-RAY | ZedGraph Summary
This is a fork of The original project is LGPL copyrighted 2004-2009 by John Champion. In this fork we try to bring this project up to date to take advandage of modern C# features as well as add functionality to make it more usable for financial charting.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ZedGraph
ZedGraph Key Features
ZedGraph Examples and Code Snippets
Community Discussions
Trending Discussions on ZedGraph
QUESTION
I have a WPF
application that I've been using about 1 year ago. Suddenly it started taking a lot of time to start when running it from VS2015 (around 5 minutes).
I checked the task manager and it seems that the application's instance is taking 8,500 MB from memory on startup, while decreasing to around 3,900 MB later.
I created a release folder and tried it on several PCs and it worked fine. It seems that this problem is only on my PC.
EDIT
I started debugging my program after InitializeComponent()
and found out that using ZedGraphControl zedGraph = new ZedGraphControl();
is the one causing this problem. I tried to run old solutions that have been working before and now I have the same problem on them.
Note that I have been using ZedGraphControl
in many projects and even in this project but this behavior suddenly appeared.
ANSWER
Answered 2021-Apr-21 at 08:32I think you have installed the nuget package ZedGraph, you could try the following:
1) clean nuget caches, delete all files under C:\Users\xxx\.nuget\packages
and also delete the folder \packages
after that, run update-package -reinstall
under Tools-->Nuget Package Manager-->Package Manager Console
2) close VS, delete .vs
hidden folder under the solution folder, bin
and obj
folder and then restart your project to test again.
3) disable any third party extensions under Extensions-->Manage Extensions-->Installed.
4) reset vs settings under Tools-->Import and Export Settings--> Reset vs settings
5) type devenv /safemode
under Developer Command prompt for VS to start a new pure VS to test again.
QUESTION
I have three Forms in my project. Form2 Connects the Serial Port. Form1 writes and reads data from the Serial Port. Form 3 only needs to write to the serial port, however when i send data to the serial port I get an "Port is closed error". I do not see any difference in the way i set up form 2 and form 3 so i am not sure why Visual Studios is giving me the "port closed" error.
Form 2 will connect to serial port
...ANSWER
Answered 2020-Nov-27 at 00:29Ok, if you're totally new then concepts around OOP will take time to learn. Let me try and give you a solution to get you out of trouble.
QUESTION
When GraphPane contains only one CurveItem rime series, everything works fine, each new point is added to the chart and displayed without gaps or missing values.
Then, I add second time series to the same GraphPane and data points in these time series come in with different frequencies, so they have different values on X axis, data type of X axis is set to DateAsOrdinal
. At this moment, when I add data points to each time series, chart seems to try to synchronize data points in both time series and populate difference between data point in the first time series and data point in the second with some average intermediate values.
Example
...ANSWER
Answered 2020-Aug-05 at 11:20Following code, as for me, produce correct graphs with your data.
QUESTION
Windows Forms ZedGraph control in WPF application. The data points are auto-generated and attached to the chart every N seconds. When new data point is added to the chart I shift (pan) chart one point to the left, so there is always no more than last 50 points visible in the viewport. Overall, it works pretty good, except for two things.
Issues
- If user tries to zoom in or out, the viewport stops following the last data point and chart goes outside of the screen, so panning stops working
- I would like to pan or shift chart using mouse event, without scrolling, but when I press right mouse button and try to move it to the left, it tries to zoom chart instead of panning
ANSWER
Answered 2020-Aug-01 at 18:50Kind of solved it.
First issue with broken auto-scroll after zooming
It happens because zooming sets these parameters to FALSE.
QUESTION
I wrote the following code in C#:
...ANSWER
Answered 2020-May-20 at 00:13You didn't construct your iterator the same in Python (up to phi = 1) as you did in C# (up to phi = 10).
Using the right phi gets you there with Python. Also, using numpy simplifies things quite a bit.
QUESTION
My task is to implement a random number generator using LCG algorithm.
The task is to generate 1000 axes (x,y) between [-1, 1] and print them on a pane.
If the point is inside the circle of radius 1.0, it will be printed as Red.
Otherwise, Blue.
I used the parameters suggested by Numerical Recipes suggested in this YouTube video. I am following the coding style used in this link.
I am using ZedGraph to show my plots.
Why are the random numbers not properly scattered on the pane?
And, where are the blue points?
Random number generator class:
...ANSWER
Answered 2020-Mar-14 at 22:55Try using regular C# Random class (https://docs.microsoft.com/en-us/dotnet/api/system.random?view=netframework-4.8), it doesn't seem worth it to "roll your own" in this case.
I think this will be good enough for your purpose.
The current implementation of the Random class is based on a modified version of Donald E. Knuth's subtractive random number generator algorithm.
https://docs.microsoft.com/en-us/dotnet/api/system.random?view=netframework-4.8#remarks
If that doesn't meet your requirements you can look into:
QUESTION
i am converting a windows form application to asp.net, the main issue i have is that i cannot add the connectionstring or appsettings TAG, it continues to give me the error that my web.config file is not valid: "is allowed only one configSections and must be the first child of configuration
If you run with this web.config it works, but if you uncomment the connectionstring it gives error
Here my file web.config:
...ANSWER
Answered 2019-Dec-12 at 11:15it says
is allowed only one configSections and must be the first child of configuration
Move your appSettings
and connectionStrings
sections BELOW the configSections
node.
QUESTION
I have a Dictionary with Key and Value Pairs. I need to create a Line Graph on zedGraph, plotting the Key in the X-Axis and the Value in the Y-Axis. I am using Visual Studio 2017.
the Key is a DateTime type. The Value is a string type.
I was thinking of creating 2 arrays, an X-Axis Array and a Y-Axis array.
Any other/quicker/more optimal suggestions?
I have already tried converting the DateTime values into Ticks, but i cannot create a loop to print them. It gives me an Error:
...ANSWER
Answered 2019-Oct-16 at 10:18You cannot enumerate – use as source in a foreach
loop – something that is not a collection (or looks very like a collection).
A long
is a singular value, not a collection, so cannot be enumerated.
You need to iterate over the set of points you want to plot, not the values of the coordinates of those points.
(Whether separate arrays extracted from the underlying dictionary makes sense depends on the details of the graph library.)
QUESTION
I've searched and can't find an answer to this question. I could write the code myself to do it, but I don't want to reinvent the wheel. :)
Since ZedGraph uses an IPointList and its indexer for internal data access, you can assign any kind of data structure to it and dynamically change the data that ZedGraph receives when it calls the indexer.
It's a smart architecture, and naturally, it would be feasible to implement a Level-of-Detail system using a custom IPointList where the number of points is culled based on the xScale and yScale of the GraphPane.
This way you can have millions of points loaded, but when the zoomlevel of the graph would show all the points, they can be culled so that ZedGraph is only drawing a few thousand. As the zoom magnification is increased, fewer points would be culled in the region of interest.
I wanted to know if ZedGraph already offers anything like this out of the box. I haven't seen any indication of support for it.
Does anyone know?
...ANSWER
Answered 2019-Aug-13 at 23:47I posted about this on Sourceforge and got no response there either.
Then I posted on a fork on Github and got a response. It's here: https://github.com/ZedGraph/ZedGraph/issues/13
The answer: There is a naive algorithm that filters points by simply skipping them blindly to reach a target display number.
Of course this naive approach can give completely wrong impressions of what the data looks like when peaks and valleys get dropped in a line graph, for instance. IMHO, an algorithm like that is completely unuseable.
So basically, there is no acceptable built-in culling in ZedGraph at the present time.
QUESTION
I am new in C# and trying to create zedgraph of lessor sensor. First I create a global variable and write code for graph. My graph is working but after reached to the point of 100 of x axis it will overlap to old line. z1.GraphPane.CurveList.Clear(); command is not working. I tried listPointsOne.clear(); command also but that clear the line and doesn't show anything on graph. Please help me out with this. My code is below :
...ANSWER
Answered 2019-Jun-26 at 01:04You should clear the curvlist
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ZedGraph
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page