DaxLib.SVG is a DAX User-Defined Functions (UDF) library designed to make creating SVG visuals in Power BI easier.
- Download the library from DaxLib
- Install using TMDL view
- Start using the functions in your measures
For detailed examples, check out our example PBIP file.
| Category | Description |
|---|---|
| SVG Wrapper | Wraps one or more Elements, Defs, Compounds, applying required metadata and <SVG> tags |
| Elements | SVG primitives (i.e. <Rect>, <Circle>, <line>) |
| Compounds | Complex components (i.e. boxplot, violin) made from Elements |
| Defs | Define reusable SVG elements (i.e. <linearGradient>, <clipPath>, and shapes) |
| Attributes | Create Attributes (i.e. fill, stroke, opacity) string that can be applied to Elements and Defs |
| Transforms | Create Transform strings |
| Scales | Mapping values between scales |
| Colors | Themes and functions for colour manipulation |
Full documentation is available at our GitHub Pages site.