The Chart card allows you to create a chart (line, bar, pie, etc) from any data you have on Snapboard - its a super easy and powerful way to display trends.
Your first chart
The most important field is
Chart Data, as that's where your chart gets the information it needs. There are a few different ways to use it, and we detail those below.
We can get our first chart card working by simply entering a few numbers into the
Chart Data field - this is a simple array (or list) of numbers.
=[10, 20, 30]
Nice - creating charts is that simple! 🎉
Now that you've created your first chart card, lets add some labels so we can see what those numbers represent. For that we can use the
Labels field - simply enter a value for each number in our
Chart Data field.
You card should now look like the below - you should be able to see the labels under each bar.
Entering a simple array (or list) of numbers is useful to get started, but it won't ever update because they're just plain numbers. The power of Snapboard is being able to link cards to your existing data - so we'll now update our formula to get data from somewhere else on Snapboard.
In this example, I'm going to reference data from a grid card to demonstrate how it works, but you can reference any card on Snapboard.
Our chart so far only displays a single set of values - "Sales of Apples" - but what if we want to compare "Sales of Apples" and "Sales of Oranges" over the same period? For that, we need to introduce another dataset. Again, we'll start with some static numbers - and then once we have it working, we'll populate it using a formula.