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

Encode a Field using Conditions in Vega-Lite

OBJECTIVE I'm trying to add data labels to my chart, however I have multiple bars layered on top of each other, and I need the data labels to hover over different bars depending on if values in a certain field are positive or negative. ATTEMPT This…
Nick W
  • 63
  • 7
1
vote
1 answer

How to access the value of a single datum in a dataset using an expression in Vega Lite

We are attempting to parameterize the y-axis domain range by allowing the user to create simple measures (y_min=0.3, y_max=0.7) in PowerBI, and then access these measures within the Vega-lite JSON code to set these scales. I am able to set the raw…
1
vote
1 answer

how to create a shape with min and max values power bi

I have a data below: xmin xmax ymin ymax 2 4 1 2 4 6 2 3 I wanted to generate a shape which I can use to fill in values. Please assist. Thank you
python_interest
  • 874
  • 1
  • 9
  • 27
1
vote
1 answer

How to visualize two rectangles in Power BI

How to display two rectangles, on inside the other in a Power BI visual? Of course, given rectangle coordinates and sizes. Preferably using native visuals. Example: Bigger rectangle (frame) size is width:10 hight:8 Inside Rectangle size is width:3,…
Przemyslaw Remin
  • 6,276
  • 25
  • 113
  • 191
1
vote
1 answer

Deneb plot (Vega-Lite) for Power BI: How to get a hierarchical display of labels on each axis?

I am using the Deneb custom visual in Power BI to construct a Gantt-style chart of tasks, broken down by project over time. Eventually, my plan is to customize this for my purposes in ways that go beyond the capabilities of the Gantt charts…
thearn
  • 323
  • 3
  • 6
1
vote
1 answer

Unit Chart Progess Bar

Does anyone know how I can change a Progress Bar chart to a Unit Chart Progress Bar (ideally with units of 10). Similar to the pic show below: { "width": 300, "height": {"step": 30}, "data": { "values": [ {"region": "Central",…
steve257
  • 77
  • 5
1
vote
1 answer

Vega-Lite: How to use a color field and have a legend?

I would like to create a Vega-Lite / Deneb faceted bar chart with data where there is a need to a) have a specific color for each bar ie Brand and b) have the Brands in a specific order. Color and sort order are given as columns in the data: bColor…
Reija
  • 11
  • 2
1
vote
1 answer

Deneb, how to create line chart with horizontal and vertical lines and labels

What would a Deneb (Vega Lite) specification look like to draw a line chart like this + horizontal and vertical line with a custom label where those horizontal and vertical lines meet the axis? Okay, so this was my attempt. I need help - do not…
DataWrangler1980
  • 183
  • 3
  • 13
1
vote
1 answer

Legend Series Doubled in Line Chart

I've been trying to edit my legend on a line chart to use different symbols for each field in the series. My output on the actual chart is showing correctly, where each series had a different symbol, but my legend duplicates the series, one showing…
Bryan
  • 15
  • 2
1
vote
1 answer

Power BI - Deneb chart showing tooltips in reverse

I've created a simple stacked bar chart in Deneb where the user can highlight in place: x-axis is group, highlight is tiers. I've also created a tooltip that should show the name for each bar and should match the label on the bar. What's strange…
Pat
  • 125
  • 9
1
vote
1 answer

highlighting bars in Deneb (Power BI) - fillOpacity

I have the chart on the left, code provided below, and would like to get the chart on the right. The chart on the right has the bars highlighted that correspond to a selected tier; the tier selected comes from a slicer. (The right chart shows Tier…
Pat
  • 125
  • 9
1
vote
1 answer

Deneb Vega Lite Map not displaying

I am using the deneb visualisation in PowerBI and I am trying to create a map of Australia, there aren't any errors coming up with the below json code but my map is not displaying. Does anyone know what I am doing wrong? { "$schema":…
1
vote
1 answer

Power BI Deneb - how to increase white space between bars

I am new to Deneb. I start with the simple barchart and want to increase the space between the bars. I've read a lot of documentations, search a lot, but cannot find anything. I am using Vega-Light. Is it possible? How?
mshparber
  • 103
  • 8
1
vote
1 answer

Vega-lite Stacked bar chart with 2 different data objects

Im trying to emulate in Vega lite the behaviour of power BI where if you add 2 data objects based along the same date, you're able to stack the data on top of each other. I'm using Deneb in power BI, but it uses vega lite, so any vega lite solution…
0
votes
0 answers

Vega Graph Network with Labels on the lines / edges

I have this sample Vega specification, however the labels that are supposed to be plotted alongside the lines (Edges) are instead printed on the top left corner of the canvas? How can I change the specification to resolve this issue? You will see on…
DataWrangler1980
  • 183
  • 3
  • 13