Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Deneb error duplicate signal name

Hello everyone,

 

I try to recreate an animated bar chart by using deneb (https://vis.csail.mit.edu/pubs/animated-vega-lite/). I adjusted the code at some points, to fit it with my sample data. Unfortunately, I get an error 'Duplicate signal name: Year_tuple. I didn't succeed to fix this error. Hopefully, one of you can help me out. The sample data can be found here

 

The code used for the Deneb visualization is as follows: 

{
"data": {"name": "dataset"},
"encoding": {
"color": {"field": "Category", "legend": {"offset": 80}},
"x": {"field": "Value", "type": "quantitative"},
"y": {
"field": "Brand",
"type": "nominal",
"sort": {"field": "Value", "order": "descending"},
"axis": false
},
"time": {
"field": "Year",
"scale": {"type": "band", "range": [0, 400]},
"key": {"field": "Brand"},
"rescale": true
}
},
"params": [
{
"name": "Year",
"select": {"type": "point", "on": "timer"},
"bind": {"input": "range", "min": 2021, "max": 2023, "step": 1}
}
],
"transform": [
{"calculate": "+substring(datum.date,0,4)", "as": "year"},
{"calculate": "+datum.Value", "as": "value"},
{
"sort": [
{"field": "year", "order": "descending"},
{"field": "value", "order": "descending"}
],
"window": [{"op": "rank", "as": "rank"}],
"groupby": ["year"]
},
{"filter": {"param": "year"}},
{"filter": {"field": "rank", "lte": 10}}
],
"layer": [
{"mark": "bar"},
{
"mark": {
"type": "text",
"align": "left",
"baseline": "top",
"dx": 3,
"dy": 4
},
"encoding": {"text": {"field": "Brand"}}
}
]
}

1 ACCEPTED SOLUTION
giammariam
Super User
Super User

Hi @Anonymous, although the Vega team is working on bringing animation to Vega and Vega-Lite, it is not officially available yet, so Deneb is not able to use those features. However, you can implement animations using timers in Vega, but the level of effort involved is quite significant. 

The link below is an example where I'm doing zoom-on-click animations (a downloadable version of the .pbix is attached). The easing for the animations, as well as the resizing and positioning of all the nodes are recalculated upon each click. Currently there is no way to do this in Vega-Lite as timers are only currently available in Vega. 

https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Where-is-Everybody/m-p/3566465#M11602



Madison Giammaria
Proud to be a Super User 😄
LinkedIn

Do you frequently use Deneb to provide insights to your stakeholders? Have you considered sponsoring this free and open source custom visual? More info here!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @giammariam , thanks for your reply. Pity to hear that animations are not available yet. 

Awesome visual btw, I am sure that it took you some effort to create that! 

giammariam
Super User
Super User

Hi @Anonymous, although the Vega team is working on bringing animation to Vega and Vega-Lite, it is not officially available yet, so Deneb is not able to use those features. However, you can implement animations using timers in Vega, but the level of effort involved is quite significant. 

The link below is an example where I'm doing zoom-on-click animations (a downloadable version of the .pbix is attached). The easing for the animations, as well as the resizing and positioning of all the nodes are recalculated upon each click. Currently there is no way to do this in Vega-Lite as timers are only currently available in Vega. 

https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Where-is-Everybody/m-p/3566465#M11602



Madison Giammaria
Proud to be a Super User 😄
LinkedIn

Do you frequently use Deneb to provide insights to your stakeholders? Have you considered sponsoring this free and open source custom visual? More info here!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.