Skip to content

ILinePlot: Performance Improvements for ILinePLot

Created by: sinkap

Instead of converting the DataFrame to JSON and converting to the dyrgaph format in JS. Send the prepared data as expected by dygraphs to the JavaScript Library and get rid of convertToDataTable function.

With the current change the following plot works reasonably well on my laptop (Core i7 2.2GHz, 16GB RAM)

columns = ["tick", "tock", "toe"]
df = pd.DataFrame(numpy.random.randn(300000, 3),
columns=columns).cumsum()

trappy.ILinePlot(df, column=columns).view(max_datapoints=2000001)

Merge request reports