s_b
April 6, 2020, 9:16pm
1
Hi,
I’m trying to find a way to change the title of the ‘Users’ column in the Cohort template .
I need it to say something else as it doesn’t represent users in my case.
This is important as I’m using it within a dashboard and it must be self-explanatory.
Any ideas?
jesse
April 6, 2020, 9:42pm
2
This isn’t possible directly from Redash. But you can modify the JS to make it happen. Just change the peopleColumnTitle
key in this file:
import { merge } from "lodash";
import ColorPalette from "@/visualizations/ColorPalette";
const DEFAULT_OPTIONS = {
timeInterval: "daily",
mode: "diagonal",
dateColumn: "date",
stageColumn: "day_number",
totalColumn: "total",
valueColumn: "value",
showTooltips: true,
percentValues: true,
timeColumnTitle: "Time",
peopleColumnTitle: "Users",
stageColumnTitle: "{{ @ }}",
numberFormat: "0,0[.]00",
percentFormat: "0.00%",
This file has been truncated. show original
And then rebuild your frontend assets.
Redash uses the Cornelius library to make the cohort.