ZedGraph | Fork of John Champion 's ZedGraph charting framework

 by   saleyn C# Version: Current License: LGPL-2.1

kandi X-RAY | ZedGraph Summary

kandi X-RAY | ZedGraph Summary

ZedGraph is a C# library. ZedGraph has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

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

            kandi-support Support

              ZedGraph has a low active ecosystem.
              It has 14 star(s) with 7 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 1 have been closed. On average issues are closed in 16 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ZedGraph is current.

            kandi-Quality Quality

              ZedGraph has no bugs reported.

            kandi-Security Security

              ZedGraph has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ZedGraph is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              ZedGraph releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ZedGraph
            Get all kandi verified functions for this library.

            ZedGraph Key Features

            No Key Features are available at this moment for ZedGraph.

            ZedGraph Examples and Code Snippets

            No Code Snippets are available at this moment for ZedGraph.

            Community Discussions

            QUESTION

            ZedGraphControl constructor suddenly takes a lot of memory
            Asked 2021-May-11 at 14:04

            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:32

            I 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.

            Source https://stackoverflow.com/questions/67177876

            QUESTION

            Sharing Serial Port across multiple Forms C# VB
            Asked 2020-Nov-27 at 00:29

            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:29

            Ok, 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.

            Source https://stackoverflow.com/questions/65030518

            QUESTION

            Prevent ZedGraph from drawing missing points
            Asked 2020-Aug-05 at 11:20

            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:20

            Following code, as for me, produce correct graphs with your data.

            resulting plot

            Source https://stackoverflow.com/questions/63239216

            QUESTION

            Zooming with mouse wheel breaks panning (scrolling) of real time data in ZedGraph
            Asked 2020-Aug-01 at 18:50

            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

            1. 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
            2. 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:50

            Kind of solved it.

            First issue with broken auto-scroll after zooming

            It happens because zooming sets these parameters to FALSE.

            Source https://stackoverflow.com/questions/63195874

            QUESTION

            Epitrocoid in Python is not giving proper plot
            Asked 2020-May-20 at 00:13

            I wrote the following code in C#:

            ...

            ANSWER

            Answered 2020-May-20 at 00:13

            You 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.

            Source https://stackoverflow.com/questions/61902488

            QUESTION

            Why are the random numbers not properly scattered?
            Asked 2020-Mar-14 at 23:11

            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:55

            Try 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:

            https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rngcryptoserviceprovider?view=netframework-4.8

            Source https://stackoverflow.com/questions/60687974

            QUESTION

            in web.config is allowed only one configSection error
            Asked 2019-Dec-12 at 11:15

            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:15

            it says

            is allowed only one configSections and must be the first child of configuration

            Move your appSettings and connectionStrings sections BELOW the configSections node.

            Source https://stackoverflow.com/questions/59301885

            QUESTION

            How do I plot a dictionary (KeyValuePair) in a graph (zedgraph) in C#
            Asked 2019-Oct-16 at 10:18

            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:18

            You 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.)

            Source https://stackoverflow.com/questions/58410798

            QUESTION

            Does ZedGraph offer any kind of Level-of-Detail Culling behavior?
            Asked 2019-Aug-13 at 23:47

            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:47

            I 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.

            Source https://stackoverflow.com/questions/57350885

            QUESTION

            Remove GraphCurve list on ZedGraph
            Asked 2019-Jun-26 at 01:04

            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:04

            You should clear the curvlist

            Source https://stackoverflow.com/questions/49185602

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ZedGraph

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/saleyn/ZedGraph.git

          • CLI

            gh repo clone saleyn/ZedGraph

          • sshUrl

            git@github.com:saleyn/ZedGraph.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link