Summary

In this chapter, we saw how to build the 2D pie chart module, which is based on a number of key elements.

In the development of SimpleGraph, we discovered how to create an architecture that has a single container for all graph types regardless of style, for example, a pie chart, line chart, or even a bar chart. This same class also introduced the concepts of how to interact with the Renderer to make lines and shapes visible on the screen.

We learned how to create an ancestor class for all graph styles, GraphItem, which contains a number of constants, getters, setters, and abstract methods that will be implemented in descendent sub-classes. Then, we discovered how to develop a PieChart class that can be used to create dynamic pie chart ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.