Skip to content
Snippets Groups Projects
Commit 504baca6 authored by Maz Ameli's avatar Maz Ameli
Browse files

Merge branch 'series-settings' of github.com:metabase/metabase into series-settings

parents 7e915ae9 e8a32860
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@ function onRenderCleanupGoal(chart, onGoalHover, isSplitAxis) {
chart
.selectAll(".goal .stack._0")
.append("text")
.text("Goal")
.text(chart.settings["graph.goal_label"])
.attr({
x: labelOnRight ? x + width : x,
y: y - 5,
......
......@@ -592,7 +592,7 @@ function addGoalChartAndGetOnGoalHover(
onHoverChange(
element && {
element,
data: [{ key: t`Goal`, value: goalValue }],
data: [{ key: settings["graph.goal_label"], value: goalValue }],
},
);
};
......
......@@ -327,6 +327,14 @@ export const GRAPH_GOAL_SETTINGS = {
getHidden: (series, vizSettings) => vizSettings["graph.show_goal"] !== true,
readDependencies: ["graph.show_goal"],
},
"graph.goal_label": {
section: t`Display`,
title: t`Goal label`,
widget: "input",
default: t`Goal`,
getHidden: (series, vizSettings) => vizSettings["graph.show_goal"] !== true,
readDependencies: ["graph.show_goal"],
},
};
export const GRAPH_COLORS_SETTINGS = {
......
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