Black Lives Matter. Please consider donating to Black Girls Code today.

Call go.GraphType differently

I am trying to based on the graph type user provided and data call different go.X function.

For example, ‘data’:[go.Scatter(x = random_x,y = random_y)], I want the data user provided only be like ‘data’:(x = random_x,y = random_y) data just data, without go.Scatter.

Then based on graph type user provide and data draw different graph.