Here is the code-
import pandas as pd
import seaborn as sns
import pandas as pd
from bokeh.charts import Bar, output_file, show
from bokeh.charts.attributes import cat, color
from bokeh.charts.operations import blend
from bokeh.charts.utils import df_from_json
from bokeh.charts import Bar, output_file, show
df = pd.read_csv(“/home/pragyan/Documents/Pandas-Table/samplereqd-test2.csv”)
df = pd.DataFrame(df)
p = Bar(df, values=blend(‘M1’,‘M2’,‘M3’,‘M4’,‘P1’,‘P2’,‘P3’,‘P4’,
name=‘Severity Count’, labels_name=‘severity’),
label=cat(columns=‘Code’,
sort=False), stack=cat(columns=‘severity’),
legend=‘top_right’, title=‘Check if any Particular Code leads to a specific severity’, plot_width=1100,
plot_height=600, tools=“wheel_zoom,pan,reset,resize,save”,
color=[‘#87CEFA’,‘#9BC4E2’,‘#6CA6CD’,‘#325C74’,‘#EE7942’,‘#CD6839’,‘#8A360F’,‘#5C4033’], webgl=True)
output_file(“/home/pragyan/Documents/test2.html”)
show(p)
The code runs well. No error. Runs as expected. But slow. Can anything be done?
···
On Tuesday, July 26, 2016 at 4:32:42 PM UTC+5:30, Bryan Van de ven wrote:
Without code to inspect or run it is impossible to speculate about what might be going on. Can you provide a complete, minimal, run-able test script to reproduce what you are seeing?
Bryan
On Jul 26, 2016, at 04:59, Pragyan Bezbaruah [email protected] wrote:
I have tried webgl in Stacked Bar Chart but Not much improvement.
I have a csv file. Analytics is done in pandas and visualisation is done using Bokeh.
Is there any other way to fast up rendering?
Rendering takes like 5-6 seconds in the Python CLI but when I give the show command, it takes like a minute to show up the visualisation.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/14c55cb7-993a-4f7c-a831-1ffe03397799%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.