This is a simple example of the use d3Kit which shows how to build a responsive chart. It uses the d3kit.Skeleton which provides scaffolding to quickly create such a visualization.
Do
Resize the window and watch the dot chase the center of the box.
Notice
How easy it is to define aspect ratio of the box and size of the dot - in this case to form the flag of Japan.