Stop making simple line charts. Add the power of max and min?instead.
Simple line charts are boring, let's make them spicy.

Stop making simple line charts. Add the power of max and min?instead.

Are you related to data and somehow make line charts on a daily basis? Well, let’s discuss how to make the line charts better.

I was recently creating a dashboard on Tableau and felt the need of creating a line chart. Well, if you are new to the field of data, line charts are normally used to distribute an attribute over a period of time. For example, if you want to show the growth in revenue for the last five years, you may use a line chart for it. What would it look like visually? Let me show you:

No alt text provided for this image
Earnings or revenue for a period of five years (example)

Returning to the topic, I was creating a line chart containing the revenue across different months for a year. This is how my chart was looking when I first added the measures to my workbook:

No alt text provided for this image
Distribution of revenue across the 12 months in 2022

After creating this I felt like it is quite raw and like my steaks, I don’t like it raw. I wanted to add some flavor to it and cook it.

Then I chose to unleash the power of using maximum and minimum values in my distribution and also hiding all the axis and different values being shown here as I did not want the exact values to be shown I just wanted to see the distribution and where the sales hit the maximum and the minimum.

Let me take you to the workbook and show you the process.

After the first step, I hid the x and y axis on my sheet. This is how it looked after it:

No alt text provided for this image

A pretty clean diagram as I wanted it to be.

Then I created a custom measure as min/max sales and this is how the formula looked:

No alt text provided for this image
"Product Amount" here is the revenue

Then added this custom measure to my rows. Which changed my diagram to this:

No alt text provided for this image

But this is not what I wanted. I wanted it to be with the max and min on my diagram. Here comes the secret sauce of Tableau. You can combine the different attributes into a single axis. How?

Right-click on min/max sales and you will get:

No alt text provided for this image

Click on Dual Axis and voila, your diagram changed to:

No alt text provided for this image

Then I wanted the colors of the points to be appropriate and for this, I did the following:

No alt text provided for this image

Determined the field value on the Marks pane for the min/max sales as a circle which gave me the leverage to style them.

Then I dragged and dropped min/max sales custom measure on the color value of the same tab and it gave me the option to style the values we have in the measure and here they were only two, the min and the max.

This added a box on the right like this:

No alt text provided for this image

The next step wasto edit colors and this box had an option of “Edit Colors” which brought me to my next dialog box of color palettes. I wanted my max to be green while the min to be colored red.

Choosing red and green diverging color palettes distributed the two values perfectly.

No alt text provided for this image

After all this exercise this insane man finally had what he wanted, a line chart with max and min in distinguishing colors without any text distraction. The size could also be adjusted accordingly.

No alt text provided for this image

Let me show you how this visual looked on my dashboard; now you will know why I wanted it to be this way.

No alt text provided for this image
Let me show you how this visual looked on my dashboard; now you will know why I wanted it to be this way.

Does it look good? Let me know.

I hope this was helpful. I would love to know how you experimented with your line chart.

Basharat, a learning analyst, signing off.

要查看或添加评论,请登录

Syed Ahmed Basharat Ali的更多文章

  • Docker vs Podman: A newbie taking on a legend

    Docker vs Podman: A newbie taking on a legend

    Containers have revolutionized application deployment by enabling faster, scalable, and consistent development…

  • Am I the only one?

    Am I the only one?

    Hi there, fellow data people. I have been pondering on thoughts related to data analysis and wanted to include you in…

  • Hookup with Tableau

    Hookup with Tableau

    If your company harnesses the power of Tableau as its visualization software, you're in luck! There are numerous ways…

  • Data + Business - The way forward

    Data + Business - The way forward

    Let’s discuss a use case where business knowledge combines with data. In the world of Fintech everything is based on…

  • Why the field of data?

    Why the field of data?

    This is a very common question I get asked. It has a very simple answer for me as this was a very concious decision.

  • Importance of Data Exploration & Business Context

    Importance of Data Exploration & Business Context

    You will find a lot of people bragging about their skills in the field of data and you will see them using fancy words…

    1 条评论
  • Humans' obsession with "automation" and the new superhero in AI Galaxy - AutoGPT

    Humans' obsession with "automation" and the new superhero in AI Galaxy - AutoGPT

    In the ever-advancing world of technology, the human quest for automation has been an ongoing endeavor. From the…

    1 条评论
  • Power BI Fiscal Year?Hack

    Power BI Fiscal Year?Hack

    The Problem I was presented with a requirement where the charts and slicers in the Power BI dashboard were to be sorted…

    2 条评论

社区洞察

其他会员也浏览了