Questions tagged [datapoint]

Represents a data point that is stored in the DataPointCollection class.

The DataPoint class stores properties associated with data as well as data point values. Each data point consists of an X-value and one or more Y-values. More info available on MSDN.

82 questions
19
votes
4 answers

How to attach a DataPoint with a Theory?

@DataPoints public static final Integer[] input1={1,2}; @Theory @Test public void test1(int input1){ } @DataPoints public static final Integer[] input2={3,4}; @Theory @Test public void test2(int input2 ){ } I want that test1 runs with data set…
Sanjeev Kumar Dangi
  • 6,925
  • 7
  • 28
  • 30
9
votes
2 answers

R ggplot: Apply label only to last N data points in plot

I have created a line chart (plot) in R with labels on each data point. Due to the large number of data points, the plot becomes very fully with labels. I would like to apply the labels only for the last N (say 4) data points. I have tried subset…
user32556
  • 103
  • 1
  • 4
8
votes
1 answer

How to design an NUnit Theory?

I have created an NUnit Theory to help me test some code. The actual code being tested isn't as important to this question as the data that I'm using to test it. Namely, the hours and minutes of time in a 24-hour clock. I wrote my fixture this way…
dkm
  • 101
  • 1
  • 6
5
votes
2 answers

How to view the last 10 DataPoints in a chart that's updating each second?

I have this code: private void timer_Tick(object sender, EventArgs e) { timer.Stop(); for (int i = 0; i < TOTAL_SENSORS; i++) { DateTime d = DateTime.Now; devices[i].Value =…
Bosak
  • 2,103
  • 4
  • 24
  • 43
3
votes
2 answers

.NET Chart: How to add DataPoint with different member types than double?

The namespace I'm looking at is System.Windows.Forms.DataVisualization.Charting in .NET Framework 3.5. I've constructed a Chart with name chart1 and added a Series called mySeries to that chart. Within the Data section of that series in the…
John
  • 15,990
  • 10
  • 70
  • 110
3
votes
2 answers

How to drag a DataPoint and move it in a Chart control

I want to be able to grab a datapoint drawn in a chart and to move it and change its position by dragging it over the chart control. How can I .. ..grab the specific series point (series name ="My Series") When released the series point should…
LittleThunder
  • 131
  • 1
  • 2
  • 12
3
votes
4 answers

Retrieving X and Y values from Matlab Plot

I have a plot figure and I want to retreive x and y cordinates when we select particular data point using mouse from plot figure. Any ideas?
Satya Vamsi
  • 217
  • 3
  • 6
  • 13
2
votes
1 answer

chartjs - Only connect dots if less than 1 minute apart

I have a chart with values that arrive at variable intervals. usually i have data point per second, but during a pause i could get no point at all for 20 minutes. or over a whole weekend.. here is a screenshot of my current chart: what I would like…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
2
votes
0 answers

Locate data point(s) in python dataframe

I have a graph (please see the attached pict) plotted from a data frame (tsv) that looks like this. Graph Current vs Z Time (s) Current Current1 X Y Line …
pretzel
  • 21
  • 1
2
votes
1 answer

Shifting datapoints in line chart

I have line chart with 10 points in x axis and y axis is variable. That thing what I need is - when I have (for example) points to x=3 it is moving to the end of chart (x=10). But when there are 10 values (x is in the end of chart) I need to remove…
Dufino
  • 33
  • 6
2
votes
1 answer

Rotate curve (serie of DataPoints) X degrees defined their new Baseline

I am using MSchart to plot serie into it, i need to rotate Curve (serie of datapoint) X degrees, P1 is fisrt click (mouseDown) and P2 second click (mouseUp), the angle between P1 and P2 represent the angle to rotate (i have this calculated), the…
2
votes
1 answer

VB.NET CHART- Display a subset of the total data points

VB 2008 .NET FRAMEWORK 3.5 MSCHART - FASTLINE CHART TYPE Is it possible to have an MS Chart control contain 20,000 data points, but only show the last 100? I know that I can select the last 100 from my datatable and use it as a…
user3670107
  • 23
  • 1
  • 3
2
votes
1 answer

WPF Toolkit Chart: How to add value label to specific data point

Is there any possibility to add a label to a specific data point within a WPF toolkit chart? That label should simply show the data point's value. This was quite easy to achieve on iOS (core-plot) and Android, but I couldn't get it to work on…
Georg Molzer
  • 45
  • 1
  • 6
1
vote
1 answer

Plotting a curved line directly through some datapoints in R (ggplot)

I am struggling with plotting a figure on the motion profile of a simulator. What I'm trying to show are the displacements of the simulator over time. Some sample data: Time = c(0, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44) Displacement = c(0, 0, 7, 0,…
Anne
  • 19
  • 4
1
vote
1 answer

"Pie chart"-like data point for scatter diagram in Gnuplot

I got to the stage in data analysis, where I need to show multiple dimensions in a single plot in order to better emphasize correlations. Placing a pie-chart for every data point would be the best way to go. Appended here a figure I found at:…
1
2 3 4 5 6