ToolTip in Charts
Hi, I have requirement to show a customized tooltip in charts. For example i have two Vertical Bars in the chart when i mouse over the first bar it should show a tooltip like 'Total revenue is $1000' the $ is column value. Is that possible to show the custom tooltips?
when you do a vertical or horizontal chart definately when you point the cursor at the end defaultly will show the total amount.Yes you can manipulate the chart as you want by editing it and show the tooltip.
Similar Messages
-
Dynamic tooltips for charts (BusinessGraphics) with simple series
Hello,
I was wondering wheter the tooltip for charts with simple series can set dynamically. I cannot bind it to the context within the properties of the BusinessGraphics control but maybe it can be set in the code?
This way I want to show the value of the column for instance as tooltip in a chart, or is there a better solution?
thx,
jeroenI got it!
This thread helped me.
[http://forums.sdn.sap.com/thread.jspa?threadID=1343796|http://forums.sdn.sap.com/thread.jspa?threadID=1343796] -
Tooltip for chart's bar or line
Hi,
I need to set a tooltip for my chart's bars, so when the user hovers on each one the chart's bars, a tooltip popup and give that bar's value. I heard there is no direct solution for this problem. If so, can we solve this problem in any advanced tricky way or I should just look for some other reporting tool other that Crystal Reports to meet this requirement?
Thanks,
AlThank you very much! It's funny that I've been looking for something that already existed as you pointed. By the way, can I change the bar's default tooltip's text? I just need to have the x-axis value on the tooltip. I need to exclude the field name from the tooltip's text. Thanks again.
Regards,
Al -
Display tooltip in Chart control
I have a requirement to display a piechart with a number of sections supplied via a datasource and have the following code to display tooltip and also have the chart sections exploded. So far the Chart does not show tooltip when I mouse over section neither
does it explode the sections. Is there a flag I need to include in my web.config file or is there a setting in Internet Explorer that needs to be set? Using IE 9 and VS 2010 with .net 4.0
For Each objDataRow As DataRow In objDataTable.Rows
Dim objDataPoint As New DataPoint(0, Doubl.Parse(objDataRow("Requested").ToString()))
'Adding ToolTip
objDataPoint.ToolTip = objDataRow("PRJName").ToString() & " has " & objDataRow("Requested") & " percent requested"
Me.PrjCodeRequestedActual.Series("Series1").Points.Add(objDataPoint)
Me.PrjCodeRequestedActual.Series("Series1").Points(intCount)("Exploded") = "True"
NextMODULE POOL PROGRAM
http://www.allsaplinks.com/dialog_programming.html
dialog programming
http://fuller.mit.edu/tech/dialog_programming.html
http://www.sappoint.com/abap/dptc1.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
check sample code.
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/abap.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTOO/BCDWBTOO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRFORM/BCSRVSCRFORM.pdf
http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
SAP Library:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm.
Usage of Table Control in ABAP (PDF):
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1499ec90-0201-0010-769f-860989655f7e
Rewards if useful.........
Minal -
How to change the format of tooltips in bar chart?
Hi experts,
I am using the WAD and using the bar chart
to show the query result.
However, when the mouse hovered on the bar,
a tooptip would appear and show both
charateristics' value and key figures' values(x and y axis).
The requirement is that tooltip should only show the key figures' value and the font should be larger.
Is there anyway to change that tooltip format?Dear Habeeb,
Thank you so much for your reply.
I read the website you gave.
Does that mean I can add "tooltip_text" to specify
what should be display on the tooltips of charts?
And how can I assign it with only key figure value?
(or you can say, only column value)
I am quite sorry that I am not very familiar with HTML skill.
Could you please kindly explain a little more about this solution?
Again, thank you so much for your help.
Regards,
Wen-Wei -
How to break labels for a chart or slider tooltip
Hi!
How can I set a linebreak in my label functions for
slider-tooltips or chart-labels?
THXYou should be able to insert a line break using "\n":
text="line 1\nline 2"
Tracy -
HttpService with JSON from server - help please
Hi!
I am trying to pass back a JSON object to flex using
HttpService. The scenario is like this - using HttpService I am
calling an action since i am using Struts 2.0 . This action is
supposed to return a string in JSON format. When i am passing back
the data in XML format the data is properly displayed with the
required hierarchail structure. But when I am passing back the JSON
string it is not displaying anything.
This is the call to server
<mx:HTTPService id="srv" url="...... /
myaction/getSomeData.action"/>
the srv value is coming as null.
I am a total newbie to flex.
Thanks for any help in advance,
RohitThe code is as follows:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:ilog="
http://www.ilog.com/2007/ilog/flex"
layout="absolute" creationComplete="srv.send()">
<mx:HTTPService id="srv" url="
http://192.168.103.128:8081/ManageMe/manageme/generateXMLForGantt.action"/>
<mx:Style>
GanttSheet
borderStyle:none;
rowPadding: 4;
TaskItemRenderer {
borderColor: "0x388F24";
backgroundColor: "0xB5D021";
rollOverColor: "0xFDF621";
borderRollOverColor: "0xF4C811";
selectedColor: "0xFDB201";
borderSelectedColor: "0xFF9201";
selectedRollOverColor: "0xFDF621";
borderSelectedRollOverColor: "0xF4C811";
textPosition: "right";
v-align: "top";
barTopMargin: 0.3;
barBottomMargin: 0.3;
.milestone {
startSymbolBorderColor: "0x24598a";
startSymbolColor: "0x4422EE";
.summary {
borderColor: "0x000000";
backgroundColor: "0x22ee56";
endSymbolBorderColor: "0x000000";
endSymbolColor: "0x000000";
startSymbolBorderColor: "0x000000";
startSymbolColor: "0x000000";
</mx:Style>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.collections.HierarchicalData;
[Bindable]
public var tasks:HierarchicalData = new
HierarchicalData(srv);
//[Bindable]
// public var tasks:HierarchicalData = null;
[Bindable]
public var constraints:ArrayCollection = new
ArrayCollection([
{ fromId:"T2", toId:"T3", kind:"endToStart" },
{ fromId:"T3", toId:"T4", kind:"endToStart" },
{ fromId:"T5", toId:"T6", kind:"endToStart" },
{ fromId:"T6", toId:"T7", kind:"endToStart" },
{ fromId:"T7", toId:"T8", kind:"endToStart" },
{ fromId:"T7", toId:"T8", kind:"endToStart" }
]]>
</mx:Script>
<mx:VBox width="100%" height="100%">
<mx:ApplicationControlBar id="toolBar" width="100%"
height="40">
<mx:HBox>
<mx:Button toolTip="Expand All Items" width="30"
height="28" click="myDataGrid.expandAll()"
icon="@Embed(source='../resources/expanded.png')"/>
<mx:Button toolTip="Collapse All Items" width="30"
height="28" click="myDataGrid.collapseAll();"
icon="@Embed(source='../resources/unhierarchical.png')"/>
<mx:Button toolTip="Zoom In" width="30" height="28"
icon="@Embed(source='../resources/zoom in5.png')"/>
<mx:Button toolTip="Zoom Out" width="30" height="28"
icon="@Embed(source='../resources/zoom out7.png')"/>
<!--<mx:Button toolTip="Expand Chart" width="30"
height="28" click="myGanttSheet.showAll(margin=10);"
icon="@Embed(source='../resources/zoom fit6.png')"/> -->
</mx:HBox>
</mx:ApplicationControlBar>
<ilog:TaskChart id="taskChart" width="100%" height="100%"
taskDataProvider="{srv.lastResult}"
taskItemStyleName="TaskItemRenderer" >
<ilog:dataGrid>
<ilog:GanttDataGrid id="myDataGrid" rowHeight="24">
<ilog:columns>
<mx:AdvancedDataGridColumn dataField="id"
headerText="ID"/>
<mx:AdvancedDataGridColumn dataField="name"
headerText="NAME"/>
<mx:AdvancedDataGridColumn dataField="baselineStart"
headerText="START TIME"/>
<mx:AdvancedDataGridColumn dataField="baselineEnd"
headerText="END TIME"/>
</ilog:columns>
</ilog:GanttDataGrid>
</ilog:dataGrid>
<ilog:ganttSheet>
<ilog:GanttSheet id="myGanttSheet"
taskItemRenderer="TaskChartCustomTaskItemRenderer"
moveEnabled="false" resizeEnabled="false"/>
</ilog:ganttSheet>
</ilog:TaskChart>
</mx:VBox>
</mx:Application> -
Chart legend : adding tooltip on each item
Hi,
My app displays a simple Linechart and its legend. I'm
surprised to see that the Legend component doesn't provide many
possibilities in accessing each of the items that compose it.
First, I'd like to add a tooltip on each item of the legend.
Then I would like to display a checkbox in front of every marker,
to display/hide the corresponding item in the Linechart.
One way could be to extend the Legend item (about this I
found
this
nice - yet complicated - example), but I'd really like to know
if there is a more simpe way to achieve it. As the Legend component
is very dependant from its dataprovider, maybe I'd rather create my
own custom legend, using my chart's values ?
Any help will be appreciated ! Popop ./.les_paulde wrote:
wow, thanks for your swift reply! This definitely solved my problem and I can now run the query. The code turned out as follows:
String convList = listI.toString();
convList = convList.replace("[", "(\"");
convList = convList.replace("]", "\")");
convList = convList.replaceAll(",", "\",");
convList = convList.replaceAll(" ", " \"");
And what happens if the String representation of the object in your list contains one of the characters you're replacing? It will go awfully wrong!
This is safer:
public static String asString(List<?> list) {
StringBuilder b = new StringBuilder();
b.append('(');
for(int i = 0; i < list.size(); i++) {
b.append('"').append(list.get(i)).append('"');
if(i < list.size()-1) b.append(", ");
return b.append(')').toString();
System.out.println(asString(listI)); -
Win 7 IE 11 ToolTips are not displayed on Charting object
In Win 7 IE 11 the DataVisulation Charting object does not display tooltips on hover.
This functions properly in WinXP IE8, Win 8.1 IE 11, Firefox, and Chrome. I've seen similar issues reported, but have not seen a resolution.
Has anyone out there encountered this issue?
Thanks,
CarlI am running into the exact same issue. It does not matter if the tool tip is called in code behind or withing the series tag itself. Win7 running IE11 does not show the tool tip on hover/mouse-over. Tested on multiple systems with the same results.
This can be reproduced using the "Samples Environment for Microsoft Chart Controls".
Running Microsoft Visual Web Developer 2010 open the project and run in browser to launch the development server. Go to any sample that uses the "tooltip".
Windows 8.1 or Server 2008 R2 both show the tool tips in IE11. Only seems to affect Win7 running IE11. Safari, Chrome and Firefox all display the tool tip without issue running on the same Win7 system.
I also tested on two actual server platforms. 2003 R2 fully updates to get the latest .Net browser definitions and on a 2008 R2 server fully updates with .NET 4.5. The results are the same. Win7 running IE11 does not show the tool tips on a simple bar chart.
Is there a solutions for this or workaround?
Thanks
Chuck -
Can I show tooltips of the coordinates where ever i point my mouse on the chart's line?
I had build a Linechart and the problem is I want to show tooltip that can show its coordinate when ever i hover my mouse on the line. Is there a way to do that?
You can use the DataTipFunction of Charts ,The following code shows how to get x and y coordinates.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
[Bindable]
private var arr:ArrayCollection=new ArrayCollection();
private function init():void
for(var temp:int=0;temp<30;temp++)
arr.addItem({Y:Math.sin(temp)});
private function dtf(hd:HitData):String
return "X->"+hd.x+" Y->"+hd.y;
]]>
</mx:Script>
<mx:LineChart id="lineChart" dataProvider="{arr}" dataTipFunction="dtf" showDataTips="true">
<mx:series>
<mx:LineSeries yField="Y" />
</mx:series>
</mx:LineChart>
</mx:Application> -
Collected Tooltip does not display in SSRS 2008 or SSRS 2008 R2 on a pie chart
I've tried everything I can think of, but setting the Custom Property "Collected Tooltip" for a pie chart where there is data that will be "collected" into an "Other" slice doesn't appear to work. I am using SQL Server 2008 and SQL Server 2008 R2,
and neither one seems to display the collected tooltip. I have no difficulty getting a tooltip to appear for all the other slices in the pie, using the series tooltip property. I've searched this forum as well as Google, and the
only things I managed to find with any reference was one page that shows you where all those custom attributes are and how to use them. Is there a bug here, or am I doing something wrong?
SteveHi Steve,
I have reflected the issue to the product team, and confirmed this known issue possibly would be fixed in the next release.
If the issue is urgent to your business, it is recommended that you contact Microsoft Customer Support Services (CSS) via telephone so that a dedicated Support Professional can
assist you in a more efficient manner. Please be advised
that contacting phone support will be a charged call. However, it will be free if this is a product issue.
To obtain the phone numbers for specific technology request please take a look at the web site listed below.
http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS
If you are outside the US please see
http://support.microsoft.com for regional support phone numbers.
Regards,
Tony Chain
Tony Chain [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
How to configure Tooltips for Project Gantt charts
Hi,
I am trying to Display the title of the task as a tooltip for the Project Gantt Chart.
I referred the documentation link and am trying to configure tooltipKeyLabels and tooltipKeys as specified in the link
http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e12418/tagdoc/dvt_projectGantt.html
but I could not get this to work.I am unsure about what the data object key refer to in the documentation.
Is it the key of the text resource specified in the tooltip control hints or some other thing?
Any body who has done this before,please share your ideas on this.
I am using jdeveloper 11.1.1.3.0 with ADF-BC.
Regards,
Gunabing
-
Hi Everybody,
i hope someone can help me.
I had an Gantt Chart. This Gantt shows for example Absence from employees.
When it is a absence about one complete day it looks finde. But when its a absence for example the halff day from 12 am till 3 pm than i will see the absence but the tooltip and the event is not there!
Have everybody an idea how can i solve this problem?
Thanks a lot.
Best Regards,
MarkusHi,
In the class CL_WD_GANTT use the method SET_TOOLTIP method to set the tooltip.
Please elaborate your requriement.
Regards,
Lekha. -
Chart Issue, tooltip separator / on custom XML sustitution not working
I did not find the way to declaratively change the Tooltip label separator in the chart, I see the XML contains this:
<tooltip_settings enabled="true">
<format><![CDATA[{%Name}{enabled:False} - {%Value}The problem is the "-" minus sign as separator between the label and the value - even if the Y axis show where the 0 is, some user might see them as negative number.
On option is to use custom XML. In that case, since I'm using &ITEM_NAME. in the chart title, this is not replaced.
Any idea how to overcome on these issue?
Thanks,
PeterI did not find the way to declaratively change the Tooltip label separator in the chart, I see the XML contains this:
<tooltip_settings enabled="true">
<format><![CDATA[{%Name}{enabled:False} - {%Value}The problem is the "-" minus sign as separator between the label and the value - even if the Y axis show where the 0 is, some user might see them as negative number.
On option is to use custom XML. In that case, since I'm using &ITEM_NAME. in the chart title, this is not replaced.
Any idea how to overcome on these issue?
Thanks,
Peter -
Tooltip for points in 'Chart Engine'-diagram
Hi,
I am using the Chart Engine (Class CL_GUI_CHART_ENGINE) to display a column chart.
Is there a way to show the value of a point in a tooltip when placing the mouse cursor on a column?
Thanks for any suggestions!
Regards, MathisHave you already updated your SAPGUI installation? Make sure to use the latest SAPGUI 6.40 or 7.10 patchlevel!
Mathis, you are right: the control checks the data XML for alt within the extension attributes. If you define alt the text is used as a tooltip. If there's no alt (or even no extension) in the data XML then the control automatically creates the tooltip as described above (displaying Series/Point/Value).
Example:
<Series label="Coffee" extension="alt='Tooltip of the series'">
<Point extension="alt='Tooltip of the point'">
<Value type="y">94</Value>
</Point>
<Point>
<Value type="y">10</Value>
</Point>
</Series>
<Series>
<Point>
<Value type="y">20</Value>
</Point>
</Series>
Here the first point displays 'Tooltip of the point', the second one 'Tooltip of the series', and the first one of the second series displays 'Series: 2 / Point: 1 / Value: 20.000'.
@Jonathan: the href sapevent thing is used for firing events from the control to ABAP. Using this feature you can implement an event handler as in graphics_gui_ce_demo on_click (also check create_custom_demo and look for href).
Regards, Kai
Maybe you are looking for
-
TS3771 Quicktime is required which is not supported by this version of iTunes
The suggestions in the thread instruct to change opening iTunes in 32 bit mode. With Mavericks, this is not possible. I changed to 32 bit mode and attempted opening iTunes and received the error message "iTunes requires 64 bit mode to open" thus the
-
Java script for OSX 10.6.8
I can't download coupons from Purina because I don't have the updated java, yet Java claims that OSX 10.6.8 can't suport the update. Is ther any recorse?
-
Spry menu bar - vertical format instead of horizontal
When I inserted the Spry Menu Bar I selected a Horizontal format (instead of Vertical). However, the menu bar appears vertically in the document. I have inserted it on top of the banner (which was inserted as a background image within a table) and is
-
Can't send pictures with Messages, but I can receive them.
While chatting with a friend I was trying to send him a picture using the native Mountain Lion chat client Messages. If he sends me a picture I first see a large grey rectangle with a progress indicator which gets replaced by the sent picture once it
-
HT201089 Sign in to Approve stuck in loop- any fixes? This worked fine this morning
Sign in to Approve stuck in loop- any fixes? This worked fine this morning, but now when asked to approve I am repeatedly prompted for my iCloud password. Other iCloud services are working fine.