SVG support library for Plotly/Dash
Project description
dash-svg
Scalable Vector Graphics (SVG) library for Plotly/Dash
Dash clone of the ubiquitous create-react-app default project,
import dash
from dash import html
from dash_svg import Svg, G, Path, Circle
app = dash.Dash(__name__)
app.layout = html.Div([
html.Header([
Svg([
G([
Path(d='...'),
Circle(cx="420.9", cy="296.5", r='45.7'),
Path(d='M520.5 78.1z')
], fill='#61DAFB')
], viewBox='0 0 841.9 595.3', className="App-logo", alt="logo"),
html.P(["Edit ", html.Code("usage.py"), " and save to reload."]),
html.A("Learn Dash", className="App-link", href="https://dash.plotly.com/", target="_blank", rel="noopener noreferrer")
], className="App-header")
], className="App")
if __name__ == '__main__':
app.run_server(debug=True)
Installation
You can install dash-svg with pip
:
pip install dash-svg
Documentation
Head over to the README for more details.
Contributing
The source code for dash-svg is available on GitHub. If you find a bug or something is unclear, we encourage you to raise an issue. We also welcome contributions, to contribute, fork the repository and open a pull request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash_svg-0.0.10.tar.gz
(380.3 kB
view hashes)
Built Distribution
dash_svg-0.0.10-py3-none-any.whl
(516.2 kB
view hashes)
Close
Hashes for dash_svg-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca403dc0277781d8b076b81a3e2a2c409f6e01a369c51f5da0822a33e1a62c0 |
|
MD5 | 4f15b884c959aab94c145e4f8ddca93e |
|
BLAKE2b-256 | a0fa6be5b552540f3161370ae89b11c54653e950de2b8676dec35adbe11c5985 |