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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Vega-lite in Deneb: Tooltip showing "False" instead of unique identifier

I am new to using Vega-lite through Deneb in Power BI. I am creating a bubble chart as a timeline view. I included my code below. The size of the bubbles in based on value, the date is the x-axis, and the prob is the y-axis. Everything works perfectly except the tooltip. For ID#, instead of showing the number it shows "False". If I put ID# in the labels for each bubble it shows the number just fine, so I'm not sure why it's showing "False" instead of the ID number in the tooltip. Thanks!

I based my chart off this one: https://vega.github.io/vega-lite/examples/circle_natural_disasters.html

 

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "name": "dataset"
  },
  "width": 950,
  "height": 400,
  
  "encoding": {
    "x": {
      "field": "Date",
      "type": "temporal",
      "axis": {"grid": false, "format":"Q%q %Y", "title":"Date"}
    },
    "y": {
      "field": "Prob", 
      "type": "quantitative", 
      "axis": {"title": "Prob"}
    },
    "tooltip" : [
                {"field":"Title", "type": "nominal"},
                {"field":"ID#", "type":"nominal"},
                {"field":"Amount", "type": "quantitative"},
                {"field":"Description", "type":"nominal"}
                ]
  },
  
  
  "layer":[{
      "mark":{
        "type": "circle",
        "opacity": 0.8,
        "stroke": "black",
        "strokeWidth": 1
      },
      "encoding": {
          "size": {
                "field": "Amount",
                    "type": "quantitative",
                    "title": "",
                    "legend": "",
                    "scale": {"rangeMax": 5000}
                 },
              "color": {
                    "field": "Type", 
                    "type": "nominal"
           }
        }
    },
    
    
    {
      "mark":{
      "type": "text",
      "align": "left",
      "baseline": "top",
      "dx": 5,
      "limit":200,
      "angle":-25
    },
      "encoding": {
        "text":{"field":"Title", "type":"nominal"}
      }
    }
  ]
  
}
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I was able to solve this problem: changing the data type in PBI fixed this for me. I had stored it as a text field because I didn't want it to be summarized as a number. Changing it to a numeric data type fixed the problem!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I was able to solve this problem: changing the data type in PBI fixed this for me. I had stored it as a text field because I didn't want it to be summarized as a number. Changing it to a numeric data type fixed the problem!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.