Skip to content

Colors

This library offers functions for working with colors in SVG visualizations. These functions provide capabilities for theming, and interpolation to create dynamic and accessible visualizations

These are subset of functions from EvaluationContext.Colour

Tip

Color functions can be used with attribute functions like DaxLib.SVG.Attr.Shapes() to create dynamic coloring based on data values.

DaxLib.SVG.Attr.Shapes(
    DaxLib.SVG.Color.Theme("Power BI", 1),  // Dynamic theme color
    BLANK(), 
    BLANK(), 
    BLANK(), 
    BLANK(), 
    BLANK(), 
    BLANK()
)