Comments (2)
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?
from plotly.
I used https://github.com/wilsonzlin/minify-html, but looks that js created by this library is unsupported yet or non standard.
Code was similar to
use minify_html::{Cfg, minify};
let mut code: &[u8] = html.as_bytes();
let mut cfg = Cfg::new();
cfg.minify_js = true;
let minified = minify(&code, &cfg);
from plotly.
Related Issues (20)
- Polars support HOT 1
- Requesting patterns for bar charts, and histograms.
- LaTeX y-axis tick labels introduce additional spacing HOT 1
- Table support
- Incorrect usage of x_axis, y_axis and z_axis in 3d plot layout HOT 2
- Generated html file with dark plot should also have dark background HOT 1
- Axis::matches is hardcoded to "x"
- Subplots multiple traces
- Add title to multiple traces in a subplot HOT 1
- How to remove the grid line?
- plot.show() does not work on Linux snap Firefox
- Legend text doesn't fit inside the box in SVG output. Font size is different in SVG and PNG outputs at larger fonts.
- Heatmap smoothing
- Current wasm-yew-minimal sample does not work with Yew 0.21.0 and yew-hooks 0.3.0
- put multiple subplots in the same html? HOT 1
- plotly.min.js bloats binary size
- Is this repo maintained? HOT 24
- Onclick or Ondoubleclick legend items
- Support only lower or upper bound for axis range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotly.