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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Plot Python Visual as a Tooltip based on selected data point in Power BI Line CHart

Hi Experts

 

Is it possible plot a Python Candlestick chart based on the data point that has been selected in the Power BI Visual Line Chart and return that selected data point as a variable back to the Pythin Script.

 

i want to be able to select on the Cumulative PNLogram Line chart in the attached file a single data point and based on that selected data point - run the pythin script on Page 1 Tab (power BI Attached file).

 

At present i cannot tell python what that single data point - its confused....

 

https://www.dropbox.com/s/1ho6v3esw7i4fc5/Python.pbix?dl=0 

 

 

1 ACCEPTED SOLUTION

unmarked the solution. I have not much expertise in Python visuals - you will want to make sure it renders ok with sample data befoe trying to use it as a tooltip.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi Even with you solution - i cannot get the python to plot the chart - thats my issues. A working solution.

 

Sorry to be a pain sir.

lbendlin
Super User
Super User

you haven't specified a tooltip for your chart visual. I fixed the plumbing for you. See attached.

 

Next step you need to provide all the data for your dataframe as part of the link, so whatever fields your Python script needs must also be present in the chart (try hiding the fields in the axis hierarchies)

Anonymous
Not applicable

Do you want me to unmark the solution? Where are you stuck?

Anonymous
Not applicable

any luck? Ibendlin>

Anonymous
Not applicable

Hi Ibendlin

 

Sorry marked as completed by accident, I cannot plot the Python visual that where i am stuck to get a complete wotking solution

unmarked the solution. I have not much expertise in Python visuals - you will want to make sure it renders ok with sample data befoe trying to use it as a tooltip.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.