Customers

About

Electricity

Legal

COzero News


Articles tagged 'snapshot testing'

Using Mutant + Snapshot Testing to Prevent Regressions in D3 Visualisations

Using Mutant + Snapshot Testing to Prevent Regressions in D3 Visualisations

D3 is a solid data visualisation tool but writing tests for charts can be tricky due to the way D3 chains function calls together and the sheer amount of code that's involved in bootstrapping a chart. Snapshot testing is a low effort, high reward testing approach popularised by the Jest framework for testing React apps. I've had a go at using it with D3 charts and found it works well with some caveats.
Continue reading
Creating New Chart Types in NVD3

Creating New Chart Types in NVD3

COzero needed some new charts built for our energy management system, EnergyLink. We created two new open source NVD3 models: differenceChart and lineWithFocusPlusSecondaryChart
Continue reading