Hi , I have data in 3 columns for a highcharts funnel. But the data label to be displayed is not in any column. It is the column name.
Here is my code:
“series”: [
{
“name”: “Students”,
“data”: [
[ “getColumn”, 1],
[ “getColumn”, 2],
[ “getColumn”, 3]
]
}
]
See attached pic where the data label is “slice” for all components of the funnel. I want it to say different words based on what column is being represented.
Hello Amita, hope this message finds you fine.
If I understand well, you have 3 different columns instead of 1.
so, if it’s right, my suggestion is something like:
You can use getColumnName expression to get the name of the column in a field well. However note, that the second argument of your array must be a number, not an array of numbers that ["getColumn", 1] produce. E.g.:
Thanks.
I cannot use a integer for the metric part as that value changes depending on users choices … which I control via filters.
I can input a string for the column name as that is always the same but I need to use “getColumn” for the metric as that is not known before hand.