
You can also hover over the chart above and click on "Edit this chart" in the top right to jump right into the chart creation process and see the line coordinates. To try it out yourself, find the Google Sheet with the calculated lines here. Now we're ready for the great effect: Copy the line coordinates (you can just click on the column header to select and the copy the whole column) and paste them into the Add custom lines and areas (experimental) text fieldĪnd voila, your lines should now appear. Bring the line coordinates into Datawrapper Using straight lines draw a cross by connecting 12 dots so that 5 dots are inside the cross and 8 dots are outside the cross. We can apply the formula to all cells below with a click on the little blue square in the bottom right of the selected cell. This ensures that the formula always refers to the correct cell. If you keep the style properties in an extra cell, don't forget to add a $ symbol before the 1 in H1, like so: $H$1 (or just H$1). This way, you can easily experiment around. With the simple chain, we can also easily add the style properties, like or We recommend to keep them in an extra cell and to append them to the line coordinates. We can use JOIN() to simply join the columns together with the "," delimiter: =JOIN(",",B2:E2)Ī more complex but more flexible way is to chain he columns together with ampersands (&): =B2&","&C2&","&D2&","&E2 Now we can simply merge the columns together. Here we sort the columns in the same order as we want them later on in our line coordinates:Ĭreate the line coordinates out of the columns Set up the columnsįirst, we need the data to be in the right format. To do so, we use Google Sheets (Excel or OpenLibre works, too). For that, we need two x/y positions – one starting point and one end point of the line.This is how we want our lines to look at the end: the x position of the 1st dot, the y position of the 1st dot, the x position of the 2nd dot, the y position of the 2nd dot could write down the line coordinates for these almost 200 countries by hand – or we could calculate it. If you want to draw a rectangle, you'll need the x/y positions of four points: In the Add custom areas and lines (experimental) option, you can type in coordinates. Let's start simple: With two grey rectangles for the background. Visit our Academy article "How to add custom lines and areas in scatterplots". Again,all the cells in the grid should be filled.


Pair all colors but be careful,the lines will break if they cross or overlap.
#Connect dots with 4 lines how to
How to play: Just connect the dots with matching lines and fill all the empty spaces. 👉 To learn more about how to add lines and areas and their style properties (width, opacity, color, etc), Link The Dot is puzzle game with 150 totally new designed levels. the red "China" dot with the other red dot). The country dots are connected with lines (e.g. The chart shows the life expectancy and the GDP per capita for selected countries in the year 1800 and in the year 2015. Let's say we want to create the following chart: But don't worry: In this article, you'll learn how to use it well, step by step. It's called "experimental" because it doesn't (yet) come with an easy to use interface.

To connect the dots – also called bubbles – of your scatterplot with each other, you can use the powerful Datawrapper feature Add custom areas and lines (experimental) that you can find in the Annotate tab. Xinding Sun from University of California, Santa Barbara found yet another twist to the problem.įurther variants are discussed at the CTK Exchange - the old archive.How to connect scatterplot dots with lines Thought and points out even more of self-imposed restrictions that I missed considering the 9-point problem Now, try to think of a restriction you imposed on yourself which was not inherent to the problem.Īs an aside, Lars Hellvig from Stockholm, Sweden picks up this line of The solution lies in the observation that it's permissible to cross square boundaries. For one always comes up with 5 lines instead of 4. The problem is to connect the dots with no more than 4 straight lines without lifting your hand from the paper. One classical example is where nine dots are arranged on the sides and the center of a square as in the picture below. The best hint, in my view, is to mention that often, when solving a problem, we implicitly impose constraints that have not come with the problem.
