Skip to main content

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.12.tar.gz (671.1 kB view details)

Uploaded Source

Built Distribution

dash_svg-0.0.12-py3-none-any.whl (810.2 kB view details)

Uploaded Python 3

File details

Details for the file dash_svg-0.0.12.tar.gz.

File metadata

  • Download URL: dash_svg-0.0.12.tar.gz
  • Upload date:
  • Size: 671.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.14

File hashes

Hashes for dash_svg-0.0.12.tar.gz
Algorithm Hash digest
SHA256 a7115bf437d770b822c2dd53b9d9a981210619b7d17c925cbee04905fc761b4e
MD5 4fdecc747e9dbd91b991c7fff220af74
BLAKE2b-256 26b1a17887bd3243925d8801319a5f9a6df4379426c43f54d39652facbab10a2

See more details on using hashes here.

File details

Details for the file dash_svg-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: dash_svg-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 810.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.14

File hashes

Hashes for dash_svg-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec26694ccfc4f6c65d20254d76b2cd3680975ca5fbe0056956c3992551c727b
MD5 db0262f9562cb2f1b63d80278581a17e
BLAKE2b-256 f47655b690616441568d5cad9eb34d4d3e968b39bdaeeb6850dc5106bd8289a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page