Questions tagged [deneb]

For questions about the Deneb custom visual in Power BI. Deneb allows you to create Power BI visuals using the Vega-lite (default) or Vega language. For code questions, include [vega-lite] or [vega] tags on your question.

What is Deneb?

Microsoft Power BI is a data visualization tool. "Power BI comes with many out-of-the-box visuals that are available in the visualization pane of both Power BI Desktop and Power BI service. Many more certified Power BI visuals are available from the Microsoft AppSource."2

Deneb is one such certified custom visual on AppSource. You can download a sample Deneb Power BI file there. Additional documentation on Deneb can be found on GitHub.

Why Deneb?

The amount of customization of the out-of-the-box visuals in Power BI is limited. If you want to do more customization of fonts, colors, formatting, or marks than the visual allows, you have to write your own custom code. Writing custom visualizations for Power BI is hard. They are usually written in D3 using Visual Studio, which is beyond the ability of most data and business analysts.

Deneb solves this problem by allowing you to enter Vega-lite or Vega code from within the Power BI visual. Vega-lite is still code, but significantly more accessible than D3. You can take a sample from the Vega-lite Example Gallery and easily implement it in Power BI even without understanding how the code works! With minimal learning, you can tweak the samples and eventually write your own complex visualizations.

Vega visualizations are highly customizable and interactive, and Deneb allows full integration and cross-filtering with other Power BI visuals. Prior to Deneb, it was difficult to create flashy infographics and high quality visuals in Power BI, especially compared with other tools such as Tableau. With Deneb, Power BI developers can now create beautiful visualizations too.

Finally, Vega is versatile. Vega code can be used not only in Power BI, but also in websites from JavaScript and in Python using Altair. You can develop one custom Vega visual and then use it many different places. Python and R visuals can be used in Power BI, but they are rendered as static images and do not allow the interaction and cross-filtering that Deneb allows. R and Python have huge problems with library versions in Power BI, while Deneb has the Vega libraries self-contained.

112 questions
1
vote
1 answer

Add Arbitrary Legend to Vega-Lite Deneb

This is currently my code . I'm displaying two area charts showcasing the evolution of metrics in 2022 and 2023 over the months: { "data": {"name": "dataset"}, "transform": [ { "calculate": "format(datum['Leaves Count…
userrr
  • 197
  • 7
1
vote
1 answer

Vega Lite - highlighting on hover and selection on click

I'm currently working on creating an interactive chart in Vega-Lite that will change opacity based on filtering by months, similar to the behavior seen in Power BI's built-in charts. I came across a useful workaround that seems to do the job and can…
1
vote
1 answer

Setting X-Axis format dynamically from columnvalue

I´m using the deneb visual for a bar chart. The datastream comes from a switch-measure (the data provided can be percentage oder whole numbers). Since the I m using a switch measure, PBI formats dont work, so I m tying to format the barchart X-axis…
1
vote
1 answer

X AXIS Date in Area Chart using Deneb visual in Power BI

I'm trying to display turnover rate evolution by Date hierarchy (I took in account on month (Mois) and Year (Année) ) Before trying with Deneb , I tried with Normal line chart , working fine: But I don't know in Deneb it's being displayed like…
userrr
  • 197
  • 7
1
vote
1 answer

In Vega lite (Deneb) how do I apply a parameter list of regression types to a calculated regression line

I have created a "poly" regression line for a scatterplot in vega lite similar to the below. I have also created a parameter list, listing the types of regression (linear, log, etc.) However, I am unable to correctly map the list so that I am able…
1
vote
1 answer

Vega-Lite (Deneb for PowerBI) - How to change the starting point of the Y-Axis?

By default, the starting point of the Y-Axis is 0. Normally this is fine, but I'd like Y-axis to start from the lowest value. How would I go about resolving this? Thank you kindly in advance Line-Chart with Y-axis at zero I've tried viewing the…
1
vote
1 answer

setting domainMax by determining the max of filtered datasets

I´m using the Deneb PowerBi visual, displaying a Population Pyramid for male / female currently I´m defining the maxdomain of the axis by aggregating the whole (male+femal) numbers, which works, but isnt optimal: I´d like to set the max domain by…
1
vote
1 answer

Dynamically Set A Max Domain in Vega-Lite

I´m trying to adopt a Population Pyramid code from https://vega.github.io/vega-lite/examples/concat_population_pyramid.html In this code the limits of the x axis for male / female are evaluated separatly. Thus max. values for the x axis in both…
1
vote
1 answer

Display two line charts using Deneb Visual Vega Lite

I wanted to try the Deneb Power bi visual , I want to display two measures "Count of leaves taken in 2022" and "Count of leaves taken in 2023" using Vega Lite. Problem is I didn't know how to display two line charts in my Y axis. Here's how it…
userrr
  • 197
  • 7
1
vote
1 answer

How do I rotate x Axis labels?

How do I get the labels on the x-axis to rotate? I need to fit them into the chart, and they are vertical I would like them to be horizontal. This is the link to the example that is nearly identical to my own…
Ben Ure
  • 21
  • 2
1
vote
1 answer

Power BI Deneb Vega Lite cornerRadiusEnd with negative values on x-axis

I am using Vega Lite in Power BI's Visual deneb 1.5.1.0 and i encountered a problem with cornerRadiusEnd. If i have negative values on the x-axis, the end of my bar is on the left, not on the right. But the corner-radius is still on the right side…
LarsKett
  • 11
  • 2
1
vote
2 answers

Vega-lite / add dynamic layer based on range defined by joinaggregate columns

I'm building a milestone trend analysis chart with vega-lite. The vega-lite chart pulls a dataset (milestone date and finish date), calculates the range for the scales based on the subranges and plots the time series of the milestones correctly. Now…
PhilippHof
  • 21
  • 8
1
vote
1 answer

How to perform a lookup to same dataset in vega-lite

I'm using vega-lite 5.6.1 within the Deneb visual for Power BI. I've built a tree/matrix hybrid visual: Now I need to get child rows to dynamically lookup fields from their parent row. This needs to happen after the dataset has been filtered so I…
Sean McLarty
  • 53
  • 10
1
vote
1 answer

In a Deneb bar chart with data labels, how do I sort the Y axis?

I have a bar chart created with Deneb, which I originally sorted by a DAX measure ("Measure1"). After I added a new mark to show data labels, the chart is not sorted correctly anymore. Why is this happening? { "title": {"text": "Simple Bar…
1
vote
1 answer

vega-lite deneb grouped bar chart - Labels positioning

i am still polishing this project: Vega-Lite / Deneb grouped bar chart (The solution code from above link is pasted at the bottom + image). I would like to add data labels to this visual showing project date but depending on Country slicer and…
WojtekW
  • 25
  • 3