From 02a0a10b9a26fd7da681388e000c9d51ade675ed Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Mon, 16 Oct 2023 21:23:54 -0300 Subject: [PATCH] Updated plotly usage --- plot/show.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plot/show.v b/plot/show.v index badfbae7c..4359a4daa 100644 --- a/plot/show.v +++ b/plot/show.v @@ -37,7 +37,8 @@ fn encode[T](obj T) string { return obj_json } -pub fn (mut app App) index() vweb.Result { +['/'] +pub fn (mut app App) plotly() vweb.Result { // For some reason this is not working yet traces_with_type := app.plot.traces.map({ 'type': TracesWithTypeValue(it.trace_type())