如何在双轴图表中显示/添加图例?

希纳纳

我创建了一个双轴图表,我在同一个图表中绘制到达时间和离开时间,并将记录数的总和显示为行。

默认情况下,Tableau 将“度量名称”添加到我的每一列“标记”中,我会得到一个自动图例,以一种颜色显示“记录数”。

然而,这根本没有用......

在此处输入图片说明

I want each time variable (eg. arrival time) to show up in a different colour. The only way I have been able to do this is by removing the "Measure Names" pill from the Marks card and then setting each axis to have its own colour. But as soon as I do this, the Legend disappears and now I finally get a nice graph with a line in each colour, but no legend to show what line is assigned to what colour.

Also the Legend option gets disabled when I use this layout.

How can I add the Legend to this?

在此处输入图片说明

Please note that the solution in this post doesn't help to answer this question.

Sound in Worship

You should be able to create 2 calculated fields that basically mimic Number of Records like

SUM([Number of Records])

拥有 2 个计算字段后,您可以根据需要为每个字段命名。然后,您应该能够在双轴的每张卡上使用度量名称和那些单独的计算字段。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章