Sketch Tutorial — How to Make Perfect Charts

Thalion
Design + Sketch
Published in
5 min readOct 1, 2018

We live in the golden age of tools for designers. I have mentioned many times that Sketch is the ultimate tool for UX design. Now with Sketch version 52 we will witness the new powerful game-changing features. There is much more to create with this software than only UI design.

If you are present on Dribbble, you may notice that many shots are various Dashboards. Many Designers knows that making a beautiful chart is a quite important element of many Dashboards. This is why, in this tutorial I would like to show you, how easily create pixel perfect charts in Sketch.

Creating a Line Chart

Creating a line chart is very simple. Press “V” and make the first point of the vector line, then make the second in the place where the chart line should end. Now press “Esc” to prevent vector tool from making the next connection.

Hold “Shift” and point the cursor on the line. By clicking the mouse button or touchpad you will make a point at the center of the line. Now repeat the sequence to make the point in the middle of two neighboring points. Make as many points as you need to ensure the right fidelity of the chart.

Now, you have got the straight line with multiple points ordered steadily. To create a nice chart you just have to move the points up and down to create fluctuations.

Some designers and extra gradients to the line charts, some of them add extra shadow. To add a nice shadow just copy the chart line and add Gaussian Blur effect, to make it subtle lower the opacity to 20%.

Making of a Line Chart

To create a nice line chart with smooth lines you have to make the everything almost the same. After making all points (before moving them up and down) select all of them except the first and last one. Now change their property from “Straight” to “Mirrored” — voila! Move the points up and down and you will notice the elegant smooth bezier curves. This method of making smooth line charts shows results in a graph that may be implemented by developers, it’s not just a creative variation.

Now, let’s make it smooth.

Creating a Donut Chart

You can create a Donut Chart in Sketch in many ways. However, there is a smart trick that lets you create it extremely precisely.

Draw a circle, for example, 200×200 size. Turn off the “Fill” and set up “Border”. Now open Border Properties — it is the place where the magic will happen.

First, we need to get the circumference of the circle.

The formula is 2πr, where “r” is the radius. The circle with size 200×200 points has got 100 points of a radius. Let’s round off π to 3.14. Let’s make the calculation:

2 * 3.14 * 100 = 628

Now, enter the number into the Gap Field in “Border Properties” pane.

What kind of value would you like to see in donut chart? Let’s make it 73%. Let’s make the calculation:

628 * 0.73 = 458,44

Enter the value into the Dash Field in “Border Properties” pane.

Voila! You can calculate every needed value and have them presented in the chart. If you would like to make the chart that will from the top simple use the flip options.

Note: If you will change the size (also scale) the chart will start to act inappropriately. You will have to make the calculations again.

Elegant donut chart.

Creating a Pie Chart

Creating this type of chart in Sketch is a little bit more challenging. To make it we will use Angular Gradient Fill. Draw the circle shape and switch the “Fill” to Angular Gradient. Add two color stops for each section you would like for the pie chart.

You are able to position precisely the color stops along the gradient precisely — to make the chart looking more professional. To do it use the number keys on your keyboard. If you hit 3, while the color stop is selected, Sketch will position it exactly 30% along the Angular Gradient.

Making a pie chart with a gradient. That’s crazy!

Pie Chart — Alternative method

You can also create a Pie Chart by drawing a Circle and making it a mask. Then you can add Rectangle. Align Circle and Rectangle to the center. Move one corner of the Rectangle to the center of Circle. Edit its other points so they will work as a part of the chart.

To conclude

Charts are the popular elements of every Dashboard. Making them in Sketch may be really convenient. I hope you will be able to make line, pie or donut chart even more precisely and beautifully.

Designing digital solutions in Sketch is very effective, but no one wants to make boring and repeatable work. Time is a very precious asset for us — Designers. This is why beside writing UX articles I build time-saving design tools to make you a better and more efficient Designer.

If you plan to start a new project soon or to organize your UI Library — do not waste your time creating everything from scratch. Feel free to use the Prime — Design System Kit. See Prime in action.

To make it easier there is a gift 🎁 Use MEDIUM10 offer code to get 10% Off.

You can also Create User Flows faster in Sketch — With SQUID you can create User Flows directly in Sketch the sketch file with your artboards. Everything may be done within a couple of clicks. See how it works.

Subscribe UXMisfit.com (and get some discounts)
Follow me on Medium
Follow me on Twitter

You can also follow me on Dribbble!

This Story was originally published on UXMisfit.com.

--

--