Skip to content

Commit

Permalink
Updated plotly usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Oct 17, 2023
1 parent 3cae3ee commit 02a0a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plot/show.v
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 02a0a10

Please sign in to comment.