def create_plot(table_csv):
scatter = []
x = []
y = []
print('Creating the Chart')
# creating plot for all of the cpus
for row in table_csv:
if 'CMD' in row and 'VSZ' in row:
continue
x.append(row[0])
y.append(row[1])
scatter.append(go.Bar(
x=x,
y=y,
name=str(row[0]),
))
layout = go.Layout(
title='Most Memory Consuming Processes',
xaxis=dict(title='Process Name', ticks=''),
yaxis=dict(title='Size in KiB', ticks=''),
height=600,
)
plotly.offline.plot(dict(data=scatter, layout=layout), filename='ike_sas.html', auto_open=True)