I want to create animated line chart.
So, I have a datasets: some countries, x-axis - years from 1980 to 2017, y-axis - some country features, which depend on x-axis (years). Something like this, but only line chart with several lines (countries). And I have some questions:
- When I create not animated line chart, figure[‘data’] is our data (lines). But when I create animated line chart, what information figure[‘data’] should contain? For data we use figure[‘frames’]. Am I right?
- Due to not enough x points my animated line chart is not enough smoothed. Is there a way to make it smoothed without adding new intermediate points?
- Question about frames. Well, let’s say I have only one line and points for line: (x_1, y_1), (x_2, y_2),…,(x_n, y_n). Am I rights that my frames will be something like this: [x_1, y_1)]. [(x_1, y_1), (x_2, y_2)], [(x_1, y_1), (x_2, y_2), (x_3, y_3)],… How it is implemented in library? Every frame my line will be regenerated or not?
P.S. My raw line chart.