Skip to content

Instantly share code, notes, and snippets.

@davivc
Last active June 5, 2019 23:05
Show Gist options
  • Save davivc/5d5ed8c4e842ce66a448c01552414351 to your computer and use it in GitHub Desktop.
Save davivc/5d5ed8c4e842ce66a448c01552414351 to your computer and use it in GitHub Desktop.
{"data": [{"type": "scatter", "fill": "tozerox", "mode": "none", "x": ["2019-04-03", "2019-04-04", "2019-04-05", "2019-04-06", "2019-04-07", "2019-04-08", "2019-04-09", "2019-04-10", "2019-04-11", "2019-04-12", "2019-04-13", "2019-04-14", "2019-04-15", "2019-04-16", "2019-04-16", "2019-04-15", "2019-04-14", "2019-04-13", "2019-04-12", "2019-04-11", "2019-04-10", "2019-04-09", "2019-04-08", "2019-04-07", "2019-04-06", "2019-04-05", "2019-04-04", "2019-04-03"], "y": [2786.65, 2696.32, 2478.9, 2251.22, 2296.93, 2614.07, 2795.14, 2788.0, 2692.65, 2473.97, 2247.07, 2288.48, 2605.75, 2790.22, 6.36, -178.11, -495.38, -536.79, -309.89, -91.21, 4.14, 11.28, -169.79, -486.93, -532.64, -304.96, -87.54, 2.79], "fillcolor": "rgba(52, 1, 108,0.1)"}, {"x": ["2019-04-03", "2019-04-04", "2019-04-05", "2019-04-06", "2019-04-07", "2019-04-08", "2019-04-09", "2019-04-10", "2019-04-11", "2019-04-12", "2019-04-13", "2019-04-14", "2019-04-15", "2019-04-16"], "y": [2778.0, 1759.0, 1503.0, 945.0, 1023.0, 1797.0, 3081.0, 2788.0, 1762.0, 1495.0, 869.0, 1013.0, 2020.0, 3480.0], "mode": "lines", "type": "scatter", "fillcolor": "rgb(52, 1, 108,0.75)", "gradient": {"type": "horizontal"}, "marker": {"color": "rgb(117, 96, 191)"}}, {"type": "scatter", "mode": "markers", "x": ["2019-04-03", "2019-04-04", "2019-04-05", "2019-04-06", "2019-04-07", "2019-04-08", "2019-04-09", "2019-04-10", "2019-04-11", "2019-04-12", "2019-04-13", "2019-04-14", "2019-04-15", "2019-04-16"], "y": [null, null, null, null, null, null, 3081.0, 2788.0, null, null, null, null, null, 3480.0], "marker": {"color": "rgba(191, 5, 45, 0.5)", "size": 7}}, {"type": "scatter", "mode": "markers", "x": ["2019-04-16"], "y": [3480.0], "marker": {"color": "rgba(191, 5, 45, 0.75)", "size": 12}}], "layout": {"width": 600, "height": 250, "margin": {"l": 50, "r": 20, "t": 20, "b": 40}, "paper_bgcolor": "rgb(242,242,248)", "plot_bgcolor": "rgb(242,242,248)", "showlegend": false, "xaxis": {"tickformat": "%d\n%a", "showgrid": false, "zeroline": false, "showline": false, "tickmode": "array", "range": ["2019-04-03", "2019-04-17"], "dtick": 1, "tickfont": {"family": "Muli, sans-serif", "size": 13, "color": "rgba(52, 1, 108,0.55)"}}, "yaxis": {"zerolinecolor": "rgba(52, 1, 108,0.25)", "zerolinewidth": 0.25, "gridcolor": "rgb(228,225,236)", "gridwidth": 0.25, "ticklen": 3, "tickcolor": "transparent", "tickfont": {"family": "Muli, sans-serif", "size": 13, "color": "rgba(52, 1, 108,0.45)"}}, "annotations": [{"x": "2019-04-16", "y": 3480.0, "xshift": -15, "yshift": 15, "xanchor": "right", "xref": "x", "yref": "y", "text": "Anomaly Detected", "showarrow": false, "font": {"family": "Muli, sans-serif", "size": 17}}, {"x": "2019-04-16", "y": 3480.0, "xshift": -15, "yshift": -2, "xanchor": "right", "xref": "x", "yref": "y", "text": "3480 pageviews (149% higher)", "showarrow": false, "font": {"family": "Muli, sans-serif", "size": 12}}], "legend": {"orientation": "h", "x": 0.5, "y": 1.2, "xanchor": "center"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment