
Initialize a new Power BI custom visual project with pbiviz, explore the default structure: assets, source files (visual.ts, settings.ts), style/visual.less, and config files (capabilities.json, pbiviz.json), and prepare the icon.
The latest version of the powerbi-visuals-tools does not necessarily use the latest version of the dependencies - including powerbi-visuals-api.
For example latest version of the powerbi-visuals-tools (at the time of recording) uses API 3.8.0 when the latest API version is 4.7.0
Starting from version 4.6.0 you must add the "privileges" to your capability.json file.
"privileges": [
{
"name": "WebAccess"
},
{
"name": "LocalStorage"
}
]
Define how data maps to your custom visual using data view mappings, focusing on categorical mapping with a maximum of one category, and update capabilities with data roles and conditions.
Learn to configure the Power BI custom visuals formatting panel by defining slicer settings and adding font, padding, margins, and alignment options in capabilities and settings.
Add an SVG element to a Power BI custom visual with D3, update dependencies, and resize to the visual viewport, preparing for scales in the next lecture.
Measure target label width with Power BI visuals utilities and text measurement service; use value formatter to format the measure and measure SVG text to ensure gap matches label width.
Add a target label to the visual by implementing a draw target label function, align its baseline to the middle of the target line, and update text and font attributes.
Add connectors to a Power BI visual by implementing a set style function, applying default color, line width, font family and size, and drawing connectors through update.
Implement tooltips for a Power BI custom visual by configuring capabilities and using the host tooltip service to show and hide tooltips on mouse over data points.
Master cross filtering and highlighting in Power BI custom visuals by enabling highlight support and marking data points with a boolean highlighted flag.
Extract the value (the average sales) and target from the data view and implement a transform data function to produce a data object for a Power BI custom visual.
Prepare the KPI label layout for a Power BI custom visual by creating an icon container and enforcing a square SVG area from the viewport height.
Unlock the full potential of Power BI by learning to create custom visuals that transform your data into compelling stories. This course will guide you through the process of developing three unique custom visuals that enhance the standard visuals available in Power BI.
Throughout the course, you will gain hands-on experience in building:
Custom Slicer: Create an intuitive single-choice menu with a separate filter reset option to simplify data navigation.
Lollipop Chart: Visualize performance against targets, complete with tooltips, cross-filtering, cross-highlighting, and conditional formatting for a truly interactive experience.
KPI Label: Design dynamic labels that display different icons based on whether the average value is above, on, or below the target. Learn to incorporate external SVG designs to enrich your custom visuals.
Key takeaways from this course include:
Understanding the structure of a custom visual project
Implementing tooltips, cross-filtering, and cross-highlighting
Applying conditional formatting to your visuals
Utilizing Microsoft Power BI Visuals Formatting Utils
Creating slicers with powerbi-models
Embedding externally-created SVG graphics into your custom visuals
Please note: This course assumes prior knowledge of D3.js. If you're new to D3, I recommend enrolling in our "D3.js - The Art of Data Visualization" course first.
Enroll now to unlock the power of custom visuals in Power BI and elevate your data storytelling skills to new heights.