Not really. The support for HTML in map tips is quite limited (it’s more just fancy rich text then true HTML). I am however working on HTML annotations which use QtWebKit which is true html support including the ability to run javascript. Once that is done you can use the values from the feature in some javascript to generate a graph in a annotation.