tooltip

Why doesn't Angular matTooltip work when you add it dynamically?

大憨熊 提交于 2020-01-11 07:09:05
问题 I have an SVG element and I want to add a matTooltip at some point in Angular. I observed that if I try to add matTooltip like this: generate() { var svgEle = document.getElementById("testSVG"); var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); rect.setAttribute('id', "rect"); rect.setAttribute('x', "73"); rect.setAttribute('y', "95"); rect.setAttribute('class', "st01"); rect.setAttribute('width', "407"); rect.setAttribute('height', "328"); rect.setAttribute(

Google Charts - How to append text to default tooltip

为君一笑 提交于 2020-01-11 07:03:49
问题 I want to add a custom tooltip to my charts by using the default one and for example just append some text to it. Is this even possible, or to i have to create it all by myself with html? data= google.visualization.arrayToDataTable([ ["Element", "Duration ", { role: "style" }, { role: 'tooltip' }], ["Count", 23515, "orange", ???], ]); How it is (Default Tooltip): How i want it: Append the duration as readable time, but still keep the default tooltip 回答1: it's not possible to add content to

Google Charts - How to append text to default tooltip

坚强是说给别人听的谎言 提交于 2020-01-11 07:03:47
问题 I want to add a custom tooltip to my charts by using the default one and for example just append some text to it. Is this even possible, or to i have to create it all by myself with html? data= google.visualization.arrayToDataTable([ ["Element", "Duration ", { role: "style" }, { role: 'tooltip' }], ["Count", 23515, "orange", ???], ]); How it is (Default Tooltip): How i want it: Append the duration as readable time, but still keep the default tooltip 回答1: it's not possible to add content to

C#: Set position of the arrow in a ToolTip Balloon?

我们两清 提交于 2020-01-11 06:30:07
问题 Is it possible to change the location of the Arrow / Stem in a Balloon Tooltip? Reason to change is because of a Button, located in the top of the screen, should have a tooltip below it. broken image link removed Above is the situation right now, I only need the arrow to be on the top-left side of the balloon. 回答1: You do not need to do anything special as the placement is automatic according to MSDN. Do have you an issue with ballon tooltip ? 回答2: I used InteropServices to call several

Highcharts pie tooltip cuts off

本小妞迷上赌 提交于 2020-01-10 05:27:05
问题 I am using Highcharts to generate a pie chart. It is generating it fine but the problem is that I have a fixed area to display the chart and the tooltip has large amount of text. The tooltip is too large to fit inside the chart div, how can I fix this? $(function () { var chart; $(document).ready(function () { chart = new Highcharts.Chart({ chart: { renderTo: 'ER_inpatient_stay', plotBackgroundColor: null, plotBorderWidth: null, marginTop: 0, plotShadow: false, backgroundColor: 'none', },

MATLAB scatter with tooltip showing other kinds of data and connecting points with arrowhead

醉酒当歌 提交于 2020-01-10 04:37:25
问题 I want to ask two questions here. In short they are, In a scatter plot in MATLAB how can I click a point using the tooltip and get not the x,y data but some other sort of data associated with the x,y point? Right now I have a workaround using gscatter and a file from file-exchange (see below). But it will get messy for large data sets. How do I connect two points with an arrowhead on the line between them? For example in the rlocus plots MATLAB makes, there is a nifty little arrowhead. Is

Tooltips for mobile browsers

五迷三道 提交于 2020-01-09 08:37:28
问题 I currently set the title attribute of some HTML if I want to provide more information: <p>An <span class="more_info" title="also called an underscore">underline</span> character is used here</p> Then in CSS: .more_info { border-bottom: 1px dotted; } Works very nice, visual indicator to move the mouse over and then a little popup with more information. But on mobile browsers, I don't get that tooltip. title attributes don't seem to have an effect. What's the proper way to give more

Tooltips for mobile browsers

橙三吉。 提交于 2020-01-09 08:36:23
问题 I currently set the title attribute of some HTML if I want to provide more information: <p>An <span class="more_info" title="also called an underscore">underline</span> character is used here</p> Then in CSS: .more_info { border-bottom: 1px dotted; } Works very nice, visual indicator to move the mouse over and then a little popup with more information. But on mobile browsers, I don't get that tooltip. title attributes don't seem to have an effect. What's the proper way to give more

d3 tooltip | passing in a variable

烈酒焚心 提交于 2020-01-07 02:47:08
问题 I have a webpage with 4 d3 charts for each of 11 different regions. One of those charts is an area chart and the code snippet is: for (mm=0; mm<regions.length; mm++) { areas.append("path") .attr("class",function(d,i){ return "area cons ar"+i+" region"+mm;} ) .attr("id", function(d,i) { return "area_"+i+"_"+mm}) .attr("d", function(d,i) { return area(d)} ); var test = d3.selectAll("path.region"+mm) .call(d3.helper.tooltip() .attr("class", function(d, i) { return "tooltip"; }) .text(function(d,

jQuery: .toggle() doesnt work properly on two different elements

◇◆丶佛笑我妖孽 提交于 2020-01-06 17:48:10
问题 This is my markup: <table class="col1table" cellspacing="0" cellpadding="0"> <tr> <td><a class="tips_trigger" href="#"><img src="/img/design/icon_tips_venn.png" /></a></td> <td><a class="facebook_trigger" href="#"><img src="/img/design/icon_facebook.png" /></a></td> <td><a class="twitter_trigger" href="#"><img src="/img/design/icon_twitter.png" /></a></td> <td><a class="myspace_trigger" href="#"><img src="/img/design/icon_myspace.png" /></a></td> </tr> <tr> <td><a class="tips_trigger" href="#