Get Zedgraph Point Hover Values?
Mar 29, 2007Im 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 RepliesIm 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 RepliesI'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]...
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]...
I'm trying to make it to where when you hover of a specific button the background image changes and then changes back when hover off. Right now i'm using this code: Fun_mess_around being the location of the image When I set this it doesn't do anything.
[Code]...
I've noticed through out VB 2010 that when prompted through the intelli window to enter a POINT variable, you can just substitue X and Y values instead and this works. How do you program that option into custom classes?Make something like the code below allow X, Y coordinates to be passed instead of a POINT variable...
Code:
Public Function GetCell(AtGridPoint as Point) as integer
'Returns the cell that the point is located in
End Function
I am working on a way to change either the x or y value of a point and am getting an error while doing so. the code i am using to do this is the following:pts(currentNo - 2).X = pts(currentNo - 2).X - 10pts is a list of Points and currentNo is merely a count that im using to track where i am in the list. I am getting the following error
View 2 Repliesin order to create fancy custom end caps on the ends of a line, a structure like the following can be used:
Dim pts() As Point = {
New Point(-2, -2),
New Point(0, 0),
[Code]....
be used to create the same point array. I can see splitting these values into an integer array but how would these in turn be placed in a point array of whatever size is defined by the text values so they can be converted to end points of a line that is developed as values are changed in the text box.
I'm drawing polygons,lines,etc. and I have to have the points of each precise - up to 12 decimals. Since a Point only takes integer values, I'm not sure how to handle scaling. I have a working user control, but rounding the decimals so I can put them into points is causing incorrect calculations (area, ect.).
View 4 RepliesI hve been working with points a lot recently, and I have been wondering if there is a way to set a point without setting point.x and point.y separately. For example for (3, 5): Point1 = (3, 5) But that isn't right
View 4 RepliesIs there such a thing as a type similar to a point, but contains a pair of decimals, or a pair of doubles, rather than integers? I searched the forums and google with no luck. I can't believe this has never come up before, I must have been using the wrong search terms.
View 4 RepliesI have a background work reading an XML file. I want it to return an array of results which happen to be values.
I want to be able to place all the values as a point on a panel as an X asis which will be lined up with a y+10 pixels on the y axis.
I have the BGW reading the XML file and getting the values. all i need to know is how to return an array list or something similar to a can draw my line graph
I have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.
View 2 RepliesI'm trying to extract a piece of text from within the string, defining both a starting point and an ending point. For instance, say I want to search for the text found between "That is a " and " car" in the string "That is a red car", so it would return "red".I know you can use .SelectionStart and SelectionLength, but the length of the word can change, so the selection length can vary. What I want is to establish a specific starting point and a specific ending point from which to extract the text from the string.
View 5 RepliesI want to know if its possible to loop in a variable and grab info from point a to point b
This is what I have stored in my Variable
PHP
</div> <!-- div reviews end white-space:nowrap; margin-bottom:5px; class="reviews" -->
<div class="list_address">
[Code].....
i have a picturebox which displays a map i have 2 modes add point and delete point when the user clicks the picture it creates a point on the picture where the user has clicked that works perfectly its when i try and delete the point when it doesent work :/ i have all the points loading from an xml file this is the code i have:
[Code]...
basicly i want it to when the user clicks the point it fines the x any y in the xml delete the node then delete all the points on the map then reload them all according to the xml
Can anyone how can i use a zedgraph?
View 11 RepliesI 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]...
I'm trying to calculate the direction between two points on a two-dimensional grid. Actually I want to determine if that vector is within a range of two values. Suppose the grid's origin is 0,0 at the upper left corner, and 0 degrees represents north. I have a point A on that grid. I want to know if a line from point A to point B on the grid is within a range of directions between 111.8 degrees (a little south of east) and 158.2 (a little east of south). Those are approximations; the 111.8 is 90 degrees plus the arctangent of 2/5, and 158.2 is 180 minus that value. I worked out a series of calculations worthy of a medieval astronomer, but I suspect there is a simpler way. I'm going to have to do this for a variety of other vectors, and I'd like to generalize
View 4 RepliesI know how I can construct an icon setting point by point, but that isn't what I want. I want to use a bitmap file or a jpeg -is easy to convert an jpeg to an bitmap- and built an icon that looks like this picture.
View 2 RepliesI want to make a drawing application which needs a few drawing functions I cant handle myself as im not very mathematicly inclined The first on the list of functions is to create an arc from a start point, end point and radius. The method signature is as followes.
Function CreateArc(byval StartPoint as PointF, EndPoint as PointF, Raduis as single) As PointF()
'Code to create an array of points...
[Code]....
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 Replieshow to print a Zedgraph. Just give me pointers/references if you don't have samples.
View 2 RepliesI 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?
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]....
I get difficult with creating graph using zedgraph. I need code for this sample graph... I need it's code so much.
View 1 RepliesI'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?
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?
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]...
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]...
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]...