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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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