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

Vega-Lite / Deneb grouped bar chart

I am trying to use the code for Gantt chart provided by HoosierBi in his youtube video, but not to show 100% Gantt chart, but to achive grouped bar chart. I would like to see projects grouped by country with start date = today (hardcoded in example…
WojtekW
  • 25
  • 3
1
vote
1 answer

In a Deneb bar chart, how do I apply conditional formatting based on a DAX measure?

I've created a Deneb bar chart, and I would like to apply a diffrent color to the bars based on a DAX measure in Power BI. For instance, if the value is greater than 200, I want the bar to be red, otherwise green. I'm not sure how to do this, I've…
1
vote
2 answers

Deneb/Vega-Lite: Hierarchial y-axis on a Gantt chart

I'm trying to make a Deneb Gantt chart, but I'd like to show the Projects grouped by Assignee ( quite the same way as if I had a Power BI table and I'd stack both Assignee and Project on rows, I could see all the Assignee's projects by clicking the…
nirnroot
  • 674
  • 1
  • 6
  • 10
1
vote
1 answer

Color encoding in multi layer chart not relfecting as intended in Vega-Lite

I am attempting to encode specific colours to circle marks plotted on a second Y-Axis. However, it seems as if the color encoding is inherited from an encoding declared in a preceding layer. This is the intended outcome: However, my specification…
Deston
  • 97
  • 5
1
vote
1 answer

How to set an auto scale for text number in Vega-Lite

I have a Vega-Lite chart built in a Power BI report that is underpinned by a dimensional model. The report offers users the ability to drill down into categories and I would like for the chart to display the text marks based on the scale of the…
Deston
  • 97
  • 5
1
vote
1 answer

Text marks in a nested layered chart built in Vega-Lite

I am attempting to add total text marks to my nested layered chart. It works fine with text marks added to one of the bar marks: text marks added to 1 bar mark - VL editor But as soon as I add for the rest, the second Y-Axis is thrown off: text…
Deston
  • 97
  • 5
1
vote
2 answers

Applying different colours to line charts in Vega-Lite

In my multi layered chart, where the 2 lines shares the same second Y-Axis; I am attempting to apply a different colour to the second line to distinguish it as the prior year. However, the same colour is being applied to both lines: Here's how I…
Deston
  • 97
  • 5
1
vote
1 answer

Data in bar mark not depicted accurately in Vega-Lite visual and flipping stacked bars

The data in my Vega-Lite visual is not being depicted accurately. Visually, the total of my target mark is higher than the total of the Usage PY mark: Looking at the data, the correct numbers are show: Usage PY for Month Nr 1 sums to 78.56 whilst…
Deston
  • 97
  • 5
1
vote
1 answer

Text mark (data label) placement in a layered Vega-Lite chart

I am attempting to exercise greater control in the placement of text marks within a chart that has dual Y-Axis; however, applying an independent scale throws the text mark placement out of kilter. Here is an example of the intended text mark…
Deston
  • 97
  • 5
1
vote
1 answer

How to assign custom colors to bar mark in Vega-Lite

I have a layered chart, combining 2 stack bar charts, a normal bar chart and a line chart. I am attempting to assign bespoke color codes to the stacked bar charts using scales and domain declarations; however, I am not getting the intended…
Deston
  • 97
  • 5
1
vote
0 answers

Deneb visuals color consistency with and without filters

I have a stacked bar chart implemented in Deneb that takes colors for the series/legend from the "host" Power BI theme via pbiColorNominal. What would be the recommended way for ensuring that colors for individual slices (legend/series) stay the…
VladB
  • 59
  • 6
1
vote
1 answer

How to create a custom legend using Vega-Lite (combined line and symbol)

I am fairly new to Vega-Lite and am attempting to fulfil a request to create a rather unorthodox report, essentially combining 3 types of charts (stacked column, clustered column and line on 2nd Y axis). Whilst I got most of the layout desired: mock…
Deston
  • 97
  • 5
1
vote
1 answer

Gantt chart example using vega-lite

I just wanted to share a way to design a simple gantt chart using Vega-lite. If someone can let me know how to remove the radius from the left edge of the bar that would be very helpful. Otherwise the json spec should be ready to use for the…
APB Reports
  • 985
  • 10
1
vote
0 answers

Vega or Vega Lite in Deneb generates the following error "Cannot read properties of null (reading 'marktype')"

I´ve run in the problem in Vega and Vega Lite that I couldn´t generate a signal that needs a field from data. Example: { "name": "summeSignal", "update": "data('dataset')[0]['row']" } The same happend if I tried to calculate…
1
vote
1 answer

Calculate distribution plot with arbitrary quantiles

The following vega-lite code creates a distribution plot, with the minimum value, the 25 % quantile, the median, the 50 % quantile, and the 75 % quantile and the maximum value, similar to a boxplot diagram. What this renders, is shown in the below…
user823
  • 265
  • 2
  • 14