zedgraph

Smoothing Zedgraph linegraphs without 'bumps'

When you use Zedgraph for linegraphs and set IsSmooth to true, the lines are nicely curved instead of having hard corners/angles. While this looks much better for most graphs -in my humble opinion- there is a small catch. The smoothing algorithm makes the line take a little 'dive' or 'bump' before going upwards or downwards. In most c...

ZedGraph - I am looking for an example of using a DateTime

Hello, I am looking for an example of using a datetime field on a zedgraph linechart X-Axis. Edit - And how do I set the XAxis max scale myPane.XAxis.Type = AxisType.Date; myPane.XAxis.Scale.Min = 0; myPane.XAxis.Scale.Max = 12; ...

Anyone familiar with the ZedGraph charting library for .NET?

I am working on a project for my company and I need to integrate some graphs of different types and average complexity to C# in the process of studying stock markets. I found this free library on the net (ZedGraph). If you came accross it, do you recommend using it? And how well is it supported? ...

Can I create this type of Graph in ZedGraph?

Let's say I have a sine curve in ZedGraph that goes from -10 to +10 on the y-axis. I'd like to be able to put limits on the curve (let's say minimum of -5, and maximum of +7), such that anything below -5 and anything above +7 is shaded, and everything in the middle is not. Is this possible in ZedGraph? Is this possible in any OpenSource ...

Remapping Mouse Controls with Zedgraph?

I am using ZedGraph and I want to zoom to a selected area by holding down Ctrl and dragging the box with the left mouse button instead of clicking and dragging with the middle mouse button. The default behavior is to zoom with just the left mouse button and to pan with the middle mouse button, but I have switched these two operations a...

ZedGraph labels

In ZedGraph how to show text labels for each point and in the XAxis all together? EDIT: If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i < myCurve.Points.Count; i++) { PointPair pt = myCurve.Points[i]; // Create ...

How do I limit the number of decimal places shown in a ZedGraph Y Scale?

I am using ZedGraph's master pane to display two graphs that have synchronized X axes. I am running into a problem when I zoom in on one of the graphs. As I zoom in, the Y axis will show an increasing number of decimal places, eventually causing the zoomed-in graph to be narrower than the other graph, preventing their X axes from lining...

Drawing graphics with Visual C++

Hi, I need to draw a scatter plot into an activex control I'm building using Visual C++. I have looked at ZedGraph but, at first glance, I can't use it as I don't have a frame. I believe the drawing must be done using the c++ drawing contexts. Is there any Visual C++ API which is able to direct its output to a drawing context object? ...

ZedGraph (.NET) - Having axis labels for actual values only

Using the ZedGraph control, say I am plotting data that has Y values of 13, 34, and 55. How do I set up my Y Axis so that the only text labels shown (and I guess that grid lines would be synchronised) are those for 13, 34 and 55? I don't want regularly spaced labels in the range of my data (say 0, 25, 50, 75, ..). Just labels at the ac...

ZedGraph: just the dots

Hi! I am new to ZedGraph, so far I could draw curves and bars but couldn't figure out how can I display just the dots without connecting them. Can you help me? (Context: C#, WinForms) ...

Oscilloscope UserControl for .net

I'm looking for a way to paint real time measurement data as a curve in a WinForms app. Here is an example of something quite close to what I'm looking for. But is there something more modular out there? ...

Drill down charts for asp.net

My employer has asked me to create some web pages with various charts - one of the requirements is to have a click through ability for further detials. I am looking for sugestions on chart libraries that I could use. c#, .net 2.0 UPDATE: I used zedgraph with a imagemap drilldown Sample ...

ZedGraph remove pie slice?

I am trying to use the ZedGraphControl to create a pie chart. I am able to add pie slices by using the zedGraphControl.GraphPane.AddPieSlice (30, Color.Red, Color.White, 45f, .0, "Data"); Method, but there does not seem to be any RemovePieSlice Or any remove object at all methods. Am I missing something simple, or does this library...

Is ZedGraph library development still active? If not - are there any open source replacements?

I'm about to start working on a new .NET project where I'm going to need to put real-time data from a hardware device on a chart and I was surprised to find out that ZedGraph development seems to have died out (last activity on the wiki is noted in late 2007). Is that true? If so, are there any good open-source replacements for ZedGraph...

GDI+ Curve Wrapping

Hi, I'm creating a graphing application using ZedGraph, which uses GDI+. If a curve is overflowing past the chart, I wrap it around to the other side. I do this by clipping the chart and just redrawing the curve as many times as it needs to wrap. for(int i=startShift; i<=endShift; i++); { g.TranslateTransform(chartWidth,0); g.Dr...

How to draw a square wave using ZedGraph?

How to draw square wave using ZedGraph? I'm thinking about something like this: My formula is: y = amplitude, if sin(x) >=0 y = -amplitude, if sin(x) < 0 In theory it should give a square wave, but gives me: ...

How to draw triangle wave using ZedGraph?

How to draw triangle wave (symmetrical) using ZedGraph? Preferably with option to adjust period and amplitude. //Edit: the function has to be [related/based on]? x (x-axis). Something like this: for (x = 0; x <= 10; x += .005) { if (Math.Sin(x * (2 * Math.PI / period)) >= 0) y = amplitude; else y = -amplitude; ...

ZedGraph PointPairs only 1 symbol

I'm hoping someone may have the answer to this one I've added some "PointPair" values to a ZedGraph graph, and this all works fine. However, when I show Symbols, it only shows the symbol on the high value, not the low value. Does anyone know what could be causing this? EDIT - Code Sample (sorry, I should've put this on yesterday) //...

How to get the data for intra-day candlestick charts for stocks on eg Nasdaq

Hi, For a learning exercise, i'm wanting to create candlestick (stock) graphs for stocks using zedgraph. Now on google finance, i can get daily open-high-low-close data which is perfect for making these graphs, but i'm wanting to create intra-day graphs, eg open-high-low-close data for an hour (or 5 mins, or 1 min even). Is there any w...

Draw a Graph in C# using zedGraph

Hello, I need to create a graph that have the following properties: The X Axis is for schools names. The Y Axis is for classes names. In Point (x,y) I need to put a dot that it's color will represent the number of students (darker means more students). I'm using ZedGraph (using that sample: http://zedgraph.org/wiki/index.php?title=Gradie...