You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when using plot.to_html(), generated file is really big for big amount of data(my app can generate few plots with several thousands of points).
I found that removing unnecessary new lines and empty points can decrease size of plot by ~30%
I tried to use html/js minifier, but it doesn't work, so I wrote simple regex which do almost same thing
let mut html = plot.to_html();
let regex = Regex::new(r"\n[ ]+").unwrap();
let html = regex.replace_all(&html, "");
The text was updated successfully, but these errors were encountered:
My inclination would be that minification would be outside the purview of this crate. There are many established minifiers available, and to bring it into the scope of this crate would just add dependencies and whilst providing a sub-optimal implementation.
When you say that you tried a minifier and it didn't work, can you expand on what happened?
Currently when using plot.to_html(), generated file is really big for big amount of data(my app can generate few plots with several thousands of points).
I found that removing unnecessary new lines and empty points can decrease size of plot by ~30%
I tried to use html/js minifier, but it doesn't work, so I wrote simple regex which do almost same thing
The text was updated successfully, but these errors were encountered: