Charts and graphs are one of those things that it’s just easier to reach for a third-party library to help create. Something like D3 is the go-to choice in this situation, but that story gets complicated when throwing React into the mix. Who handles updates then? It can quickly turn in to a headache.
In a nutshell, Victory allows us to build common charts and graphs by plugging together a collection of pre-made components. In many cases, we would only need to provide some data and Victory will work out the rest for us.
While that sounds like a dream, it would make for a really short tutorial otherwise. In this edition, we go through how to many a few common charts that power a dashboard interface. While customised axes, conditional formatting and interactive elements may end up being trivial, they are not always obvious what components needs to go where.
Victory is simple enough to get building pretty much straight away, but is also capable of creating some great visualisations. Personally, I’m a big fan of the History of Sumo put together for fivethirtyeight, which shows just what Victory is capable of.