Customizations
In the last chapter we've already seen how to add parameters to our custom view. On the graph custom view we're building in this chapter, we could configure, for example, colors, thickness of the lines, size of dots, and so on, but instead we'll focus on other kinds of customizations, for example, inverting the vertical axis, and enabling or disabling the rendering of the bottom and side labels or graph legend. Contrasting with the previous configurations, these will require some additional code tweaks and specific implementations.
Let's start by allowing inverting the vertical axis. Our default implementation will render the smaller values on top and the bigger values at the bottom of our graph. This might not be the expected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access