Zedgraph - Y2 Axis Curves Won't Plot

Jul 25, 2010

I have followed a tutorial from Zedgraph's wiki but I still seem to be having issues. When I run the code below, only the 3 curves on the Y Axis plot. I know the datasource is correct from which the 4 curves on the second Y axis are being created, because I have checked the table after creation. For some reason, however, the curves do not show up and the Y2 Axis does not change its scale to reflect any new curves. Does anyone see what I'm missing here?

[Code]...

View 1 Replies


ADVERTISEMENT

Use ZedGraph To Plot A Graph Based On Some Data?

Oct 2, 2009

I'm currently trying to use ZedGraph to plot a graph based on some data I have extracted from a machine, with reference to a user entered "Frequency" range. I has to be a line graph, with Frequency on the X-axis, and extracted data on the Y-axis. There are 4 channels for the machine, but all data values extracted are close to each other, so multiple Y-axes are not needed. I'm also trying to do it within a class, and the graph should only be drawn when I click "Button3", otherwise there would be no data anyway and button2 extracts the data.

Below are my class (the graph code is at the bottom) and form1, which button3 should call the class, but I'm stuck for both the button interfacing and the class writing. I have also attached the output I get so you can have a look at what I need. Open it in Excel to see the format. The whole program is also attached as a text file if you prefer it that way.

[Code]...

View 9 Replies

Zedgraph Adding New Y-axis Value When Click On Button?

Aug 5, 2009

for those who know how to use Zedgraph, i am new in zedgraph and need help from u guys. what i want is to add a new y-axis value everytime i click on the button. the x-axis value is set at 0 to 36 and y-axis will start at value 10, at x-axis value 1. everytime i click, y-axis will increase 1 value. Imports ZedGraph

Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, MyBase.Resize
CreateGraph(zg1)
'SetSize()

[Code]...

View 3 Replies

Zedgraph EnableWheelZoom - Get Axis Values After Zooming?

Dec 16, 2011

In my vb.net project, I use zedgraph to draw figures. I find that the following properties work well to zoom figure on the center of mouse.

[Code]...

View 2 Replies

Change The Orientation Of The X Axis Labels In The Zedgraph Control?

Oct 2, 2007

how to change the orientation of the x axis labels in the zedgraph control?

View 2 Replies

In Zedgraph, How To Dynamically Add/delete Bars When Axis.Type=Text

Jan 20, 2012

I am using zedgraph to draw bar chart in my vb.net project. The bar base is Y (meaning all bars are horizontal). I have 9 fields for user to choose from, and once a user clicks a field, one corresponding bar will show. Of course, the user can click off the selected field to remove the corresponding bar item. I can do this. The basic idea is to get all bar items and set their visibility according to user's selection. My problems is that I want to have a textlabel next to each bar (this text label is different from legend)so I set the yAxis.Type=text. There are two problems:

1) When I add bars, I still need to specify x and y value. How do I set y value in this case to make sure bar ally perfect with its text?

2) As far as I know, I can add text labels by an array as the last line code shows. But obviously this only works for bar chart with fixed bars. In my case, the number of bars and also the order is changing based on user selection. How can I set text labels?
[code...]

View 1 Replies

Formatting Axis Labels Based On Axis Label Values?

May 22, 2012

I have a P/L chart which has a left scale (Y axis) which starts from a negative value. I want to format the axis labels (the major tick mark labels) so that the negative ones are red.
Something like;

If cht.ChartAreas(chtarea).AxisX.MajorTickMark.Value < 0 Then
cht.ChartAreas(chtarea).AxisY.LabelStyle.Font = New Font("Verdana", 9.0F, FontStyle.Bold, Color.Red)

[Code]....

Of course that doesn't work since MajorTickMark doesn't have a value property. How does one make this work?

View 1 Replies

Mouse Hook In X-axis And Y-axis Coordinates?

Aug 14, 2011

I am having trouble in getting the coordinates of x-axis and y-axis in low level ouse hook...all I am getting is values in x-axis listbox and in y-axis listbox I am getting zeros......why? and my second problem is I am calling the setcursorpos
function in a for loop because I want to automate mouse movements and clicks, but setcursorpos function is not working , maybe because I am getting the coordinates wrong.....here is my code

low level mouse hook

Public Class MouseAutomating
Inherits HotKey
Public lstbox As New ListBox

[code]...

View 4 Replies

Excel - Code In VBA And Recording A Macro - Input A Values For The X Axis Rotation And The Y Axis Rotation

Sep 16, 2009

I am having some major problems with the code in VBA and recording a macro didn't get me anywhere nor is the VBA help file. I have to have it so that I can input a values for the x axis rotation and the y axis rotation so that my 3d surface graph will rotate whatever values I input, the 3d surface graph will rotate those degrees. I also have to have a method for having the default rotation. I was also wondering how to put scroll bars for the x and y rotation. The only other thing I am having trouble with is having an input to check box for right angle axes. So far I have two cells for entering the x rotation value and the y rotation value. I also already have my 3d surface graph.

View 3 Replies

RDLC Chart - Produce A Chart Showing The Month Along The Y-axis And The Value Up The X-axis

Jan 8, 2009

I have the smallest dataset in the world that simply consists of a month (text) and and amount. I want to produce a chart showing the month along the y-axis and the value up the x-axis. How do I do it? I have dragged the chart control onto the report page and populated the dataset. The chart shows but nothing like what I would expect. Just to make it simple I populated the dataset with an amount equivalent to the month number so it should show as 1 in January, 2 in Feb etc...However no matter where I drag the dataset's column names I don't get what I want. Where am I going wrong?

I use this simple loop to populate the dataset:

dsSales.Tables("Sales").Clear()

For i As Integer = 1 To 12
dsSales.Tables("Sales").Rows.Add(MonthName(i), i)
Next

ReportViewer1.RefreshReport()

I get this as a result:

View 1 Replies

.net - Joining Two Bezier Curves?

Jan 24, 2012

i have two bezier curves placed at a distance apart in space.curve 1 has control points A0, A1,A2, A3. A0 and A3 lie on curve and are its end points Curve 2 has control points C0,C1, C2, C3 . C0 and C3 lie on curve.and are its end points

i want to join the two curves A and C with an intermediate bezier curve B. the intermediate Curve B has control points A3 and C0 which lie on the curve and are its end points. the intermediate control points B1 and B2 are unknown to me. also the joining should be smooth enough. please help as to how to proceed. have read alot about beziers but dont know how to do this.

View 2 Replies

Cubic Bezier Curves / Get Y For Given X

Nov 21, 2011

I have a cubic bezier curve where the first and last points are given (namely P0(0,0) and P3(1,1)).The other two points are defined like this: cubic-bezier(0.25, 0.1, 0.25, 1.0) (X1, Y1, X2, Y2, also those values must not be smaller or larger than 0 or 1, respectively)Now what would I have to do to get the Y coordinate for a given X, assuming there's only one? (I know that under certain circumstances there can be multiple values, but let's just put them aside. I'm not doing rocket science over here, I just want to be able to get Y multiple times per second to do transitions)I managed to dig up this: y coordinate for a given x cubic bezier, but I don't understand what xTarget stands for., also this is no homework whatsoever, I'm just a bit pissed at the fact that there's no comprehensible stuff about cubic bezier curves on the internet.

View 1 Replies

Get The Lines Or Curves From A Text?

Jun 5, 2009

I would like to get the lines or curves from a text. I was looking and I found ExtTextOutW or GetGlyphOutline.

Do you know where is a sample? I found some of vb6 and vc++ but I can not do running.

View 4 Replies

How To Draw Curves Along Edges

Aug 23, 2009

I did not really want to create as what i am showing in the second picture. What i actually wanted is to draw a curved (maybe a porsche, ferarri , or a lamboghini). Can i know how to draw curves along the edges ?

View 7 Replies

Joining Two Bezier Curves?

Jan 16, 2009

i have two bezier curves placed at a distance apart in space.curve 1 has control points A0, A1,A2, A3. A0 and A3 lie on curve and are its end pointsCurve 2 has control points C0,C1, C2, C3 . C0 and C3 lie on curve.and are its end pointsi want to join the two curves A and C with an intermediate bezier curve B. the intermediate Curve B has control points A3 and C0 which lie on the curve and are its end points.

View 7 Replies

Unwanted Lines/curves In Picturebox?

May 4, 2010

I'm working on a program that will generate and graph random parabolas with integer vertices. I've got a 360n x360 pictureBox set up and used a for-next loop to draw in a grid consisting of 15 x 15 squares. when I plot the generated parabola I get some unwanted lines/curves. I think this is due to the fact that the (0, 0) point of the picturebox is in the upper left corner and the (0, 0) of my grid is in the center of the picturebox. Is there a way to "move" or "set" the pen position to the first point I wish to plot for my parabola without leaving a mark or trail? Or is there something else I can do? I've tried drawing an invisible line before my g.DrawCurve(plotPen point) but when the DrawCurve is executed I still get an extra line.

Private Sub cmdParabola_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdParabola.Click
Dim x, xPlot, y, yPlot As Single

[Code].....

View 4 Replies

How To Use A Zedgraph

Jan 15, 2009

Can anyone how can i use a zedgraph?

View 11 Replies

Way To Use ZedGraph

Jan 30, 2009

I have a form with labels, with changing values (sub totals from a carbon footprint calculation)

and i want to create a graph which plots the final amount in Label7.text into a gar graph.

Y axis should be Carbon Footprint and X axis should be date.[code]...

View 2 Replies

Input A Variable Into ZedGraph

Mar 16, 2009

I'm using VB2008 and I have ZedGraph on a form. I want the graph control to display the value of a constantly changing variable. How do I do this in code?

View 1 Replies

VS 2008 Print A Zedgraph?

Nov 3, 2010

how to print a Zedgraph. Just give me pointers/references if you don't have samples.

View 2 Replies

C# - Detecting Mouse Over Line In Zedgraph?

Dec 15, 2011

I try to detect when the mouse is over a curve in zedgraph, I am capable of doing it if the mouse is over a point of the curve, but the problem is when the curve has no points in that region,let me show you an example:

Curve is defined by 2 points: [X=0;Y=10] -- [X=1000;Y=10]

If mouse is at point [X=500;Y=10] it is over the curve, but not over any point so i cannot detect it.Is there any event which gets fired when mouse is over line but not necessarily over a point?

View 1 Replies

Get Zedgraph Point Hover Values?

Mar 29, 2007

Im using ZedGraph and want to do things as points are hovered over ("show point values" has to be on). is there an event i can harness that fires when you hover over points?

View 6 Replies

Install Zedgraph With VB 2008 (express)

Dec 29, 2009

I am trying to install Zedgraph with VB 2008 (express) I have added the reference to the zedgraph.dll file, and the zedgraph.web.dll file, but the toolbox isn't showing any of the entries for Zedgraph. I've saved and closed the project, exited studio and come back, still nothing. I've rebooted, still nothing.

[Code]....

View 4 Replies

VS 2008 Creating Graph Using Zedgraph

Mar 9, 2011

I get difficult with creating graph using zedgraph. I need code for this sample graph... I need it's code so much.

View 1 Replies

VS 2008 Using ZedGraph To Draw Functions?

Mar 10, 2010

I'm using ZedGraph to draw functions.I want it so, that the user can input a function.Eg:

txtFunction.text = x ^ 2 - 3

Graphs are drawn with this code

For x = 0 To 100
y = x ^ 2 - 3
list.Add(x, y)
Next x

This doesn't work

For x = 0 To 100
y = txtFunction.text
list.Add(x, y)
Next x

as the x can't be replaced.Is there an other way to draw graphs, by reading the function from a textbox?

View 2 Replies

VS 2008 Zedgraph Real Time?

Dec 1, 2011

I'm wanting to do a real time graph, as a test i'm going to set up a timer to increment x and y values and then plot them every second on the graph.

I've got hold of Zedgraph, which is quite a nice add-in that i came across, does anyone have experience of doing this?

View 11 Replies

ZedGraph - Display Only Highest 10 Values From Dataset?

Jan 7, 2010

I'm working with a zedgraph bar chart and displaying only certain values from a dataset. I have a dataset with 912 records. One field is called "DeviceName" and one is called "TimesOffline". I am able to bind the chart to the dataset, but it wants to plot all 912 records. What I need is to somehow sort the dataset to retrieve the top 10% (or something) devices with the highest number of times offline.

[Code]...

View 11 Replies

Zedgraph, How To Convert XAxis.Scale.Min To A Date

Dec 16, 2011

I use zedgraph to draw figures in my vb.net project. The x axis of figure is date. I have two text boxes showing the minimum and maximum values of x axis in date. The following code shows how to get x axis values when a figure is zoomed by using isEnableWheelZoom property, also see this link zedgraph EnableWheelZoom, how to get axis values after zooming?. But I found that I only get axis value, e.g. 4508.345, but NOT the date that I want. Actually on figure, it shows date correctly. My question is how to get the minimum and maximum date on figure?

Friend WithEvents gcMain As ZedGraph.ZedGraphControl
Me.gcMain.IsZoomOnMouseCenter = True
Me.gcMain.IsEnableWheelZoom = True

[Code].....

View 2 Replies

.NET : Chartarea 2D Line Plot?

Feb 2, 2012

I have a chartarea, which take too long to print the data when the count is over 100,000 points. is there a better way to show my data in a graph that is faster?

View 2 Replies

Charting - Plot Data Using The First Value

Nov 29, 2011

I have been learning and developing a software using VB for my company. I seem to have some issues with Chart function. [Code] Those 2 points will plot 2 datas (xval, finvall) & (xval, finvall2). Here is the thing. When I do the plotting, the starting points are always at (0, 0). That points come from the data point collector editor in the series properties. The question is: How do I plot data using the first value that I have? I don't want to start at (0, 0) but instead using (xval, finvall) & (xval, finvall2). I can't change the data point at run time. Many thanks!

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved