View in #general on Slack
@Vladimir_Prus: Is there a way to customize “title” attribute in
ResultSet.series? In my particular case, I’m trying to break down a metric by a dimension, and each title is in the form “dimension value, metric name”, which looks fairly repeating in the chart. And I can’t split in “,” because dimension value happens to also contain comma.
@Igor_Lukanin: Hi @Vladimir_Prus
> Is there a way to customize “title” attribute in
What would be the “ideal” value that you’d like to see there?
> And I can’t split in “,” because dimension value happens to also contain comma.
I guess that the metric name is in form
Cube.name so splitting by comma and taking the very last element should do the job. Does it?
@Vladimir_Prus: The ideal value would be just dimension value.
I assume you meant splitting by comma and dropping the last element? That would work in my specific case, but assumes that measure title does not itself contain commas
Update: your suggestion works for my use case so far. It might be good to provide a hook to customize this in future.