March 2017
Beginner to intermediate
868 pages
18h 52m
English
The next example adds a second D3.js visualization to represent a donut graph of the values in the data. This implementation requires creating a new directive and adding this directive to the web page. It reuses the implementation of the controller and also the data that it creates.
The web page for this example is available in 02_bars_and_donut.html. The web page is slightly different from the previous one in that it includes one additional view for the donut. Take a look at the following:
<script src="app.js"></script> <script src="views/bars.js"></script> <script src="views/donut.js"></script> <script src="controllers/basic_dashboard.js"></script>
The declaration of the content for the page now ...
Read now
Unlock full access