aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-03-28 15:57:13 +0200
committerTibor Frank <tifrank@cisco.com>2018-03-28 15:57:13 +0200
commitfe3b245f128cb3204cbf57e2e474f006f7ceacd5 (patch)
tree0442f4a23f887df7a52f76e763883369abf6ebdb /resources/tools
parentec28a657ac37342aa4f87c505de9de24e7d82d1b (diff)
PAL Trending: Static content
Change-Id: I4c46a0b06c5d726f7bfb5705d153f101eb46796f Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_CPTA.py13
-rw-r--r--resources/tools/presentation/specification_CPTA.yaml2
2 files changed, 9 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index 0c317c05ce..3b8c9fd3ab 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -291,19 +291,21 @@ def _generate_trending_traces(in_data, period, moving_win_size=10,
"color": anomalies_res,
"colorscale": color_scale,
"showscale": True,
-
+ "line": {
+ "width": 2
+ },
"colorbar": {
"y": 0.5,
"len": 0.8,
- "title": "Results Clasification",
+ "title": "Circles Marking Data Classification",
"titleside": 'right',
"titlefont": {
"size": 14
},
"tickmode": 'array',
"tickvals": [0.125, 0.375, 0.625, 0.875],
- "ticktext": ["Outlier", "Regress", "Normal", "Progress"],
- "ticks": 'outside',
+ "ticktext": ["Outlier", "Regression", "Normal", "Progression"],
+ "ticks": "",
"ticklen": 0,
"tickangle": -90,
"thickness": 10
@@ -313,9 +315,8 @@ def _generate_trending_traces(in_data, period, moving_win_size=10,
traces.append(trace_anomalies)
if show_moving_median:
- min_periods = moving_win_size / 2 + 1
data_mean_y = pd.Series(data_y).rolling(
- window=moving_win_size, min_periods=min_periods).median()
+ window=moving_win_size, min_periods=2).median()
trace_median = plgo.Scatter(
x=data_x,
y=data_mean_y,
diff --git a/resources/tools/presentation/specification_CPTA.yaml b/resources/tools/presentation/specification_CPTA.yaml
index cde9e3346d..6101425783 100644
--- a/resources/tools/presentation/specification_CPTA.yaml
+++ b/resources/tools/presentation/specification_CPTA.yaml
@@ -123,6 +123,8 @@
# tracegroupgap: 10
# bordercolor: "rgb(238, 238, 238)"
# borderwidth: 1
+ hoverlabel:
+ namelength: -1
-
type: "debug"