Power BI utils are set of tools that allow developer of Power BI visual to easily implement most common capabilities of visualizations, like drawing chart axes, manipulating SVG shapes and managing color formats. Instead of creating such functionality from scratch, developer can integrate these utils into his custom visual and focus on developing specific abilities of visualization.
- DataViewUtils (GitHub, npm) - provides set of tools to parse DataView object;
- ChartUtils (GitHub, npm) - helps to create chart axes and drawing labels;
- ColorUtils (GitHub, npm) - manages color manipulations;
- TooltipUtils (GitHub, npm) - simplifies usage of the Tooltip API;
- TypeUtils (GitHub, npm) - extends the basic types for Power BI custom visuals;
- InteractivityUtils (GitHub, npm) - helps to implement cross-selection and cross-filtering;
- FormattingUtils (GitHub, npm) - provides functionality to format values;
- SVGUtils (GitHub, npm) - simplifies SVG manipulations;
- TestUtils (GitHub, npm) - provides set of mocks and fakes in order to simplify creating unit tests for custom visuals.
You can simply install npm package of specific util and start using it. Please check Installation Guide provided in each GitHub repository for more information.
You are welcome to contribute and help us to improve Power BI utils. See CONTRIBUTING.md
in each GitHub repository.