Learn how to write code to create a method to be called to format the data on the x-axis into a human-readable label.
- [Instructor] So now that we have the gauge working,…and as long as it's moving, we know data is coming in.…Very rapidly, but it's coming in.…Let's go and draw a line of that same incoming flow of data.…So we already have the ChartValues…collection being populated.…Now, let's actually draw that on the chart surface.…So going back to ConstantChangesChart.xaml, the markup,…remember we have LineSeries, Binding.…There's a typo, ChartValues.…
And we'll go back to our code.…And remember we said ChartValues.Add (ft) is the object.…And scroll back up.…Here on line 32, we have lsEfficiency.Configuration…with the mapping to explain how this is supposed to go…into a value on X and a value on Y.…So now, here's the complicated part.…Unfortunately, the way this works…is it's not going to just magically figure out…what your X axis should look like.…
And especially with DateTime…or timestamps as I call it, it gets particularly complicated…to figure out what we should draw on the X axis…as an actual value.…So what I'm going to do is make a huge assumption…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.