简体   繁体   English

如何在 Tableau 中水平翻转条形图?

[英]How to flip bar chart horizontally in Tableau?

I have made a bar chart using the count of genders & age groups of a dataset.我使用数据集的性别和年龄组计数制作了条形图。 It came as a normal bar chart.它是一个普通的条形图。

But, I want to flip the chart horizontally.但是,我想水平翻转图表。 Simply, I want the Y Column on the Right side of the chart, not on the Left side (The traditional way).简单地说,我想要图表右侧的 Y 列,而不是左侧(传统方式)。

NB: I don't want to swap the axis ie interchanging x and y axis.注意:我不想交换轴,即交换 x 轴和 y 轴。

I have created this: Created chart我创建了这个:创建图表

But, I want to create like this: Desired chart但是,我想这样创建: Desired chart

A very easy thing to try is to edit the axis (by right clicking on the axis and choosing edit, or by just double clicking on the axis. Then you can check the reverse axis option and see if that satisfies you.一个非常容易尝试的方法是编辑轴(通过右键单击轴并选择编辑,或者双击轴。然后您可以检查反向轴选项,看看是否满足您的要求。

The axis will be reversed as you requested but the labels will still be on the left.轴将按照您的要求反转,但标签仍位于左侧。

Putting the bar labels on the right requires more effort.将条形标签放在右边需要更多的努力。 One way is to make a separate chart that just lists the labels and then combine both on a dashboard一种方法是制作一个单独的图表,仅列出标签,然后将两者组合在仪表板上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM