Skip to content
Snippets Groups Projects
Commit 4bb9816f authored by Tom Robinson's avatar Tom Robinson
Browse files

Tweak line/area/bar chart name logic to show metric name for single series

parent c99b185d
No related branches found
No related tags found
No related merge requests found
......@@ -390,8 +390,9 @@ function transformSingleSeries(s, series, seriesIndex) {
const name = [
// show series title if it's multiseries
series.length > 1 && card.name,
// show column name if there are multiple metrics
metricColumnIndexes.length > 1 && getFriendlyName(col),
// show column name if there are multiple metrics or sigle series
(metricColumnIndexes.length > 1 || series.length === 1) &&
getFriendlyName(col),
]
.filter(n => n)
.join(": ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment