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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jonespossibly
Advocate I
Advocate I

getting power BI tooltips on Deneb line chart

I'm using the wonderful Deneb custom visual, but don't seem to be able to get power bi tooltips on a line chart - hopefully with drill through.  it works fine on a bar chart, but lines seem to not care how much i hover and where.

 

any hints?

 

#deneb #customVis

3 REPLIES 3
jonespossibly
Advocate I
Advocate I

ok, so i think that my issue is with me using an aggregate in my mark encoding.  looks like the tooltip won't appear if you do this:
"y": {
"field": "Weekly Avg Enquiries",
"aggregate": "sum"
},

Hi @jonespossibly ,

 

Please add "tooltip": true to your code:

 

{
  "data": {"name": "dataset"},
  "layer": [
    {
      "mark": {"type": "line","tooltip": true},
      "encoding": {
        "y": {
          "field": "Weekly Avg"
        },
        "color": {
          "field": "Loan Type",
          "scale": {
            "range": [
              "#4795CA",
              "#F9B96A",
              "#779E41",
              "#F54f0F",
              "#cfcfcf"
            ]
          }
        }
      }
    },
    {
      "mark": {"type": "line","tooltip": true},
      "encoding": {
        "y": {
          "field": "Weekly Avg",
          "aggregate": "sum"
        },
        
        "color": {"datum": "Total"}
      }
    },
    {
      "mark": {
        "type": "line",
        "strokeDash": [5, 5]
      },
      "transform": [
        {
          "regression": "Weekly Avg",
          "on": "WC",
          "groupBy": "WC"
        
        }
      ],
      "encoding": {
        "y": {
          "field": "Weekly Avg"
        },
        "color": {"datum": "Trend"}
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "WC",
      "timeUnit": "monthdateyear",
      "type": "ordinal",
      "axis": {"format": "%d/%m/%Y"}
    },
    "y": {
      "type": "quantitative",
      "axis": {"format": "~s"}
    }
  }
}

vkkfmsft_0-1648715494768.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

mahoneypat
Employee
Employee

It is finicky. You need to put the very tip of the mouse on where the points would be (and make sure you the "tooltip": true .

mahoneypat_0-1648513327760.png

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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