Learn how to write code for dynamically updating the range of values displayed on the x-axis.
- [Instructor] So now to modify the x axis…on an ongoing basis we will modify the x axis here…within the read method.…But what do we modify?…A property.…And so I'll come back to line 65 in just a moment.…We'll add multiple properties.…There's an AxisStep.…Now how big is the step?…I have decided my x axis will draw,…just visually indicate, steps of size five seconds.…
But the underlying values, of course, are in Ticks.…So I'm making the assumption in my head…five-second stages are gaps of vertical lines…to indicate what's going on.…And so every five seconds,…let's find out how many ticks that is,…and we'll tell through data binding,…we'll tell the Cartesian chart that the x axis step size…is however many ticks is five seconds.…We also need the axis unit.…And a unit would be the smallest number…that's marked off on the x axis.…
And we're not interested in data anymore fine grained…than one-second intervals.…But I don't know how many ticks that is.…So we'll set that as a function goal.…So TimeSpan.FromSeconds.…One second is how many ticks?…
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.