I am currently in a project where I'm building charts using various libraries (d3 and nvd3 most of the time). I would like to build a set of automated tests and see if the data I'm feeding into the API I'm making is actually spitting out the data correctly.
How do you actually test charts? Is unit testing the right way to go for this, or is eyeballing the chart the only way to do this?