aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation_new/generator_CPTA.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-02-19 13:00:54 +0100
committerTibor Frank <tifrank@cisco.com>2019-02-20 07:21:41 +0000
commit1dfc0a8ba0ff86c3d2cfa7e839997737b0b0c312 (patch)
tree47b4b8a0285a4792680658bfa7d83eba0743b46f /resources/tools/presentation_new/generator_CPTA.py
parent0e36262a3a19bb5f0caa03a1c3f5906de11b7cd9 (diff)
CSIT-1436: Add titles to plots in Trending
CSIT-1435: Remove index from Trending Change-Id: I616b055d7ad12f241df5fa43fb121d20ef7d7e23 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 223516c8592161568843cb1c19c009411f476f24)
Diffstat (limited to 'resources/tools/presentation_new/generator_CPTA.py')
-rw-r--r--resources/tools/presentation_new/generator_CPTA.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation_new/generator_CPTA.py b/resources/tools/presentation_new/generator_CPTA.py
index 5d088ca94e..b42b639fe4 100644
--- a/resources/tools/presentation_new/generator_CPTA.py
+++ b/resources/tools/presentation_new/generator_CPTA.py
@@ -399,8 +399,8 @@ def _generate_all_charts(spec, input_data):
if traces:
# Generate the chart:
- graph["layout"]["xaxis"]["title"] = \
- graph["layout"]["xaxis"]["title"].format(job=job_name)
+ graph["layout"]["title"] = \
+ "<b>{title}</b>".format(title=graph.get("title", ""))
name_file = "{0}-{1}{2}".format(spec.cpta["output-file"],
graph["output-file-name"],
spec.cpta["output-file-type"])