X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_CPTA.py;h=b42b639fe4f4dc2b98bef020fdc59f1fe0fa1550;hb=53f44d52b513fae893e7774d77e3cff160ed9abe;hp=f9d42ba069585746b2f2fb4d1f7a497f27db6ebc;hpb=6c3d971c8b529d094f7c7355e685ea5ab63904e5;p=csit.git diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index f9d42ba069..b42b639fe4 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2019 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -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"] = \ + "{title}".format(title=graph.get("title", "")) name_file = "{0}-{1}{2}".format(spec.cpta["output-file"], graph["output-file-name"], spec.cpta["output-file-type"])