Kozea / Kozea/pygal

How to get hovering to work in PyQt

Open
#271 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Hi there. I wrote some PyQt tools that embed pygal grpahs, and I've been scratching my head trying to solve this issue:
I am using QWebView to display rendered svg files. So far, I can get the svg to show up correctly, but tooltip and hovering does not work (I can check on and off on the legend though). The same svg renders fine in browsers. I was wondering if there's any additional javascript I need to include in my svg file with the one found in https://github.com/Kozea/pygal.js/tree/gh-pages/2.0.x/

Any help is much appreciated!

Contributor guide

Open the contributing guide

Research direction

Start by comparing the SVG behavior in PyQt's QWebView with the same rendered SVG in a browser, then inspect the pygal.js 2.0.x files linked in the issue. Confirm whether the tooltip and hover behavior depends on JavaScript that QWebView is not loading; done means identifying the required setup or documenting that limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data-visualization, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.