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) is showing a second x axis on my bar chart

I have a bar chart with bars stacked over each other that is using two separate x-axis. I have each separated axis to be positioned to where one axis is on the bottom of the chart and one is on the top. Here is the chart in it's current…
1
vote
1 answer

Deneb - Cut area with no data (move start of axe from 0 to specific number)

I have this code in Deneb { "data": {"name": "dataset"}, "layer": [ { "mark": "bar", "encoding": { "y": { "field": "datum_s", "type": "ordinal", "axis": {"title": "Date"} }, …
milenjao
  • 93
  • 5
  • 18
1
vote
2 answers

How to reverse the order of colors coming from PowerBI schema

I use pbiColorNominal in the Deneb for coloring a custom stacked bar chart. The order of colors in such chart is reversed comparing to a similar out-of-the box stacked bar visual. Is there a way to reverse the order of colors imported via…
VladB
  • 59
  • 6
1
vote
1 answer

How to calculate MAX from a dataset column in original Vega

I'm working on a Power BI Deneb visual, using original (not Lite) Vega syntax. I'm trying to calculate a maximum value from a column of my dataset, containing only integers. I could do this on Power BI side and pass max as a repeated argument in…
1
vote
1 answer

Deneb - Insert vertical lines into gant chart

I have this code { "data": {"name": "dataset"}, "mark": { "type": "bar", "cornerRadius": 5 }, "encoding": { "y": { "field": "Space_CON", "type": "ordinal", "axis": {"title": "Space"} }, "yOffset":…
milenjao
  • 93
  • 5
  • 18
1
vote
1 answer

How to add a title to a concat in Vega-Lite

How do I add a title to each concat in a spec? I'd like to insert titles on top of every concat. Here's what I did so far (preview/code here) Here's an example of the result I'd like to achieve: Thank you in advance!!
tommaso capelli
  • 920
  • 2
  • 8
  • 20
1
vote
1 answer

Setting a dynamic domain in Vega-Lite (Deneb)

Another week, another Vega-lite question I´m turning to you guys. It´s actually pretty easy to create KPI cards in Deneb however what´s causing me headache is the positioning of marks. As you can see on the picture below when the delta is positive…
tomecsek
  • 107
  • 6
1
vote
2 answers

Power BI Gantt Chart

Can someone enlighten me on how to create a visual like this? Visual that show how long the business proposal has been and if they are still in negotiating phase or closing deals already. I tried searching all over the internet for a week now, but…
Jj Encrypt
  • 11
  • 5
1
vote
1 answer

Creating a Spider Chart where each arm on the web scales independently

I need to build a KPI spider chart that compares the current period, the target value, and prior periods performance. Below, I have a simple example of what I am trying to build, it is just Word Art/Images because I have not been able to build a…
Dru
  • 73
  • 9
1
vote
1 answer

How can I unbind legend on a facetted layered graph (Vega-Lite) (Deneb)

My issue is that legends and color encoding are functionning correclty appart on different layer of my visualization, but when I have the color encoding of two layered mark together, nothing works correctly. As you can see below, there is two color…
hsavy
  • 25
  • 4
1
vote
1 answer

How do you change the font formatting of a single axis label value

I have a text field ['Region'] with four values {Global, AMER, APAC, EMEA}. I have a simple bar chart and want the label to be bold only for 'Global' but have been unable to do so. I tried: { "$schema":…
tnelson98
  • 13
  • 4
1
vote
1 answer

Deneb Waffle chart (percentual share) displays correctly in PBI desktop however shows as blank in PBI Service

could anyone please help with my issue? I´ve created couple of DENEB visuals which seem to be working fine both in PBI Desktop and service however the one I´m sharing doesn´t work in PBI service, it shows as blank. Do you know by chance what might…
1
vote
1 answer

How do I use aggregates in grouped marks?

I'm trying to use the min and max aggregates of a quantitative column (Total bombers) grouped by another column (Country) in a rule mark of my visual. I want the rule y property to start at the minimum value of Total bombers and the rule y2 property…
vdvoorder
  • 13
  • 3
1
vote
1 answer

Facet graph : how to filter Y - array field

As you can see here in the editor, the version axis shows the version of all product, for each products. On the exemple there is only 2 products, but I am working with an undefined numbers of products, and I donct want to hardcode a Vconcat for each…
hsavy
  • 25
  • 4
1
vote
1 answer

Can I partially color a bar based on percentage complete on a temporal axis?

I am trying to create a Gantt chart and I want to color a single task with two colors, based on a percentage complete. Say, make the complete part green and the remaining part orange. How can I achieve this? Below is a sample code, also available in…
S. vd H
  • 13
  • 3