In my last post I discussed on how to use Javascript to increase interactivity. Today we will try to spice up the design for same file. We will add a bar graph, that auto-populates to represent the comparison between Simple and Compound Interest.
For this, I created a graph that takes the simple and compound interest from the .story file and plots the graph.
The flow is like this:
Here is the final output:
You can find the source file here.