def main(*, dataframe): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "plot": plotly_fig_to_json_dict(multi_plotly_timeseries_plot(dataframe)) }
def main(*, data): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. columns = list(data.columns) fig = go.Figure( data=[ go.Table( header=dict(values=columns, fill_color="paleturquoise", align="left"), cells=dict( values=[data[col] for col in columns], fill_color="lavender", align="left", ), ) ] ) layout_opts: dict = { "xaxis_title": "Time", "yaxis_title": "Values", "autosize": True, "height": 400, } # scrollbars should be visible: fig.update_layout(margin=dict(l=0, r=15.0, b=15.0, t=5, pad=0)) fig.update_layout(**layout_opts) fig.update_yaxes(automargin=True) fig.update_xaxes(automargin=True) return {"table": plotly_fig_to_json_dict(fig)}
def main(*, series, interval): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "plot": plotly_fig_to_json_dict(interval_box_plots(series, interval)) }
def main(*, series, alert_series): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "alert_plot": plotly_fig_to_json_dict(plot_series_and_alerts(series, alert_series)) }
def main(*, series_1, series_2): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "plot": plotly_fig_to_json_dict(timeseries_comparison_plot(series_1, series_2)) }
def main(*, dataframe, value_column, group_column): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "plot": plotly_fig_to_json_dict( plotly_pie_chart_plot(dataframe, value_column, group_column)) }
def main(*, x, y, color): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "scatter_plot": plotly_fig_to_json_dict(color_scatter_plot(x, y, color_series=color)) }
def main(*, raw_values, substitution_series): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "substituted_ts_plot": plotly_fig_to_json_dict( substituted_data_plot(raw_values, substitution_series)) }
def main(*, base_series, predictions, limit, limit_violation_prediction_timestamp): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "rul_regression_result_plot": plotly_fig_to_json_dict( timeseries_comparison_plot( base_series, predictions, limit_violation_prediction_timestamp, limit ) ) }
def main(*, data, color_map, cat_color_col): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "map_plot": plotly_fig_to_json_dict( get_plotly_osm_scatter_map_figure( data, hover_title_col="name", hover_additional_description_cols=["description"], fixed_size=2, size_max=5, cat_color_col=cat_color_col, cat_color_mapping=color_map, )) }
def main(*, freq, max_shifts_future, max_shifts_past, series, series_shiftable, freq_factor): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return { "comparison_plot": plotly_fig_to_json_dict( timeseries_comparison_plot( series, series_shiftable, freq, freq_factor, max_shifts_past, max_shifts_future, )) }
def main(*, x, y, z): """entrypoint function for this component""" # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return {"contour_plot": plotly_fig_to_json_dict(contour_plot(x, y, z))}
def main(*, series): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return {"plot": plotly_fig_to_json_dict(plotly_bar_plot(series))}
def main(*, dataframe): # ***** DO NOT EDIT LINES ABOVE ***** # write your function code here. return {"plot": plotly_fig_to_json_dict(correlation_heatmap(dataframe))}