KNOWLEDGE BASE

How to Display the Data Label in a Vertical Format by Characters


Published: 26 Aug 2022
Last Modified Date: 29 Aug 2022

Question

How to display the data label as vertical by characters? (This question is specific to Japanese, Chinese, Korean, etc.)

For example, when you rotate the label, it is displayed vertically with every character rotated 90 degrees to the left. 
User-added image

However, how to display the data label vertically with each character in the original angle as in the below image?
User-added image

Environment

  • Tableau Desktop

Answer

The ability to display the data label as vertical by characters is not currently built into Tableau Desktop.
Please consider the following workaround.

Create a calculated field for the label and enter a "line break" after each character using the [Enter] key.
Please refer to the below sample calculation.
CASE [State]
WHEN "大阪府" THEN "大
阪
府"
WHEN "東京都" THEN "東
京
都"
WHEN "愛知県" THEN "愛
知
県"
WHEN "兵庫県" THEN "兵
庫
県"
END
Note: if you have a large number of data in the label dimension, you will need to enter each label name manually, which is quite time-consuming.

The result:
User-added image

Please also check the attached workbook for detail.
Did this article resolve the issue?