Redash 图表将 x 轴转换为年份
Redash chart converts x-axis to years when it's not
我 运行 查询结果类似于这些:
_col0 | _col1
1 | 151
2 | 4324
...
17 | 23413
当我尝试创建图表时,将 _col0
放在 x 轴 presto 上假定该轴表示年份,并在 XX 是两位数时给我一个包含 20XX 而不是 XX 的图表。
我会接受它,除非 _col0
< 10,因为某种原因,运行预定的年份是 1970 年,这真的弄乱了我的图表。
我该如何解决这个问题?
x 轴的数据是整数 1..30
将 X 轴类型更改为 Category
或 Linear
:
我 运行 查询结果类似于这些:
_col0 | _col1
1 | 151
2 | 4324
...
17 | 23413
当我尝试创建图表时,将 _col0
放在 x 轴 presto 上假定该轴表示年份,并在 XX 是两位数时给我一个包含 20XX 而不是 XX 的图表。
我会接受它,除非 _col0
< 10,因为某种原因,运行预定的年份是 1970 年,这真的弄乱了我的图表。
我该如何解决这个问题?
将 X 轴类型更改为 Category
或 Linear
: