Business Graphics- tooltip with series values
Hi all,
I'm using the Business Graphics UI element.
I have a simple series and I want to show the series' values in the tooltip of the series.
However, the tooltip property is not bindable for simple series.
I tried using Series (not simple series), the tooltip works but I get multiple values for each category.
See attached snapshot (I want the graph to look like the left graph but with tooltips...)
http://img70.imageshack.us/img70/2977/businessgraphicsop4.jpg
Basically, I need to see the values in a tooltip on a category based chart.
Is it possible to create category based chart by using Series and not SimpleSeries?
How do I solve it?
Thanks,
Omri
Hi,
I've change the context a little and now it's looks like this:
Context:
Category (Node, singleton)
--> Series (Node, non singleton)
> value (Value attribute)
-->Text (Value attribute)
UI: (UI Element, property, propertyValue)
Business Grpahics -- seriesSource -- Category
--Category -- description -- Category.txt
--Series -- label -- Category.txt
--Series -- pointSource -- Category.Series
SeriesPoint -- tooltip -- Category.Series.Value
SeriesPoint -- valueSource -- Category
NumericValue -- value -- Category.Series.Value
Thanks,
Omri
Similar Messages
-
Business graphic UI - display plotted value in tooltip
Hi,
In Business graphic UI element, there are few simple series. there are some values being plotted using those series.
for example, sales for year 2001 is 89, sales for year 2002 is 91, sales for year 2003 is 78. I want to display the values 89, 91,78 in the tooltip when the mouse is hovered over these series.
Regards
seventyros
http://learnsaponline.blogspot.com
Edited by: seventyros on May 3, 2011 10:50 AMHi,
This is not true.
Please refer the help [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ed/258841a79f1609e10000000a155106/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ed/258841a79f1609e10000000a155106/content.htm]
tooltip binding attribute type is WDY_MD_TRANSLATABLE_TEXT. -
Business Graphics UI adding series at runtime.
Hi all,
I want to add the series at runtime as number of series's are dependent on the data which I am getting, so is it possible to add series at runtime and is possible how can we do that.
ThanksHi,
Refer the following thread
https://forums.sdn.sap.com/watches!add.jspa?forumID=249&threadID=953906
Regards,
Manivannan P -
Help with Capturing Business Graphics data point
Hi,
I created a BusinessGraphics UI element with SimpleSeries and assigned eventId for the categories and data points. I am able to get the series that is clicked through the event but I would like to know which point (value) is clicked as well.
The steps I followed are
1. Created BG UI element, category and SimpleSeries
2. Assigned eventIDs
3. Created an action class and mapped it to the UI element
4. Code in wdDoModifyView is
if (firstTime)
IWDBusinessGraphics chart = (IWDBusinessGraphics) view.getElement("bgCSB");
chart.mappingOfOnAction().addSourceMapping("id", "pointID");
5. Implemented action class with one parameter (pointID) and able to get the value.
Can someone help me to get the data point values from the user click.
Appreciate your help.
Thanks,
KalyanYou have done everything right, except I don't think you can do this with simple series.
Create something like this:
in the context:
series-> (this node can be with 1..1 cardinality and 1..1 selection)
points->
label (string)
value (int)
pointId (string)
in the business graphics:
create one series (not simple one) and add to it one point of numeric type.
in the properties of business graphics bind seriesSource to series context.
Series: bined poitSource to series.points
Series_points: bind eventId to series.points.pointId
bind label to series.points.label
bind valueSource to series.points
Values (these are the numeric values): bind value to series.points.value
in wdDoModify method do the same thing as you have done already.
Now, when you click on a point you will receive in your event in pointId variable the pointId context attribute value.
Best regards,
Anton -
Accessing Business Graphics using the WebDynpro API
I would like to access Business Graphics created with IGS using the WebDynpro Business Graphics API.
I have no problem displaying the graphic in WebDynpro UI, but i have no idea how to access the binary data of the graphic to work with it outside of WebDynpro UI (in fact i want to embed it into a PDF form).
Is there any possibility to do this using the WebDynpro API?
I would appreciate your help!
Regards,
ChristophThanks, but this al clear to me. I am able to display business graphics on web without problem (I have dynamic Business Graphic in my WebDynpro User Interface).
The Problem is, that i want to make further processing with the graphic. Therefore i need to access the binary data of the graphic.
Do you know if there is any possibility to get the binary data of the bmp - image generated by IGS into a byte array? -
Business graphics support accents?
Hello:
I'm doing a spanish Business Graphic, so at the Category axis accent words will appear. The Category name is set with a supply function:
categoryVtoElement = wdContext.createCategoriaVtoElement();
categoryVtoElement.setNombreCateg("Próximo");
but when the graphic is display the "ó" character is replace for 2 freak symbols. I try writing as HTML ( see this
link:ISO
) but the string is not repleace for the "ó".
I searched all over the SDN and no documentation about it I found.
Any Idea?
How Business graphic work with accent words?
Business graphics support accents?
Thanks a lot for the time.Thanks a lot Kai Gutenkunst but I fix it before seeing your answer.
Regards. -
Business Graphics : Display values for simple series ?
Hi ,
I have a some 5 simple series per category.. I am using a column chart . I would like to display the numerical values on top of each of the columns, ? How can i do it ?
And is there any proper documentation on Business Graphics UI element other than the help.sap and weblogs on the sametopic ?
Thanks and Regards
BharathwajHi ,
Thanks for the answer.. By trial and error I had figured out the values.. but am stuck in another problem..
I have two points created in the chart designer.. each one has its own color.. Now am using this to change the color of a single series .. depending on some value.. point 1 or point 2 will be selected..
In this scenario ,my legend still shows me the old ones i.e just an yellow icon..
If i add more info and captions.. for points.. I get .. the proper legend.. But the default legend set also exists. Any ideas on how to remove this .. or
to display the proper legend in some other way..
Thanks and Regards
Bharathwaj.. -
Hi All,
I am getting an error:
Webdynpro generation: metadata constraint of component component_name is violated: Point "// WebDynpro/View:com.domain.ProjectViewName/RootUIelementcontainer/...../ business graphics/series:series/Point" Role "Values":A minimum 1 object(s) is required.
I am using pie chart for graphics.
Thanks and regards,
Hanif KukkalliHi ,
When you create a series , you have to create a series -> series_point->point ->numerical or time value..
Blogs by Marcin Galczynski
/people/sap.user72/blog/2006/05/01/advanced-business-graphics--time-scatter
Or you can use a simple series
/people/sap.user72/blog/2005/03/23/business-graphics-in-webdynpro
Regards
Bharathwaj -
Dynamic Values in Business Graphics Tool Tip
hi,
I am using business graphics ui element in my webdynpro application.I am able to get the graghical output correctly.I want to have tool tip in my graph so when I place the cursor on a point, the tool tip should give the corresponding value.I have used the following code
try
String[] catLabels = {
"Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
"Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
String[][] pointCustomizing = {
{ "approved", "cancelled", "approvedPartTime" },
{ "approved" },
{ "approved" },
{ "sent", "approvedPartTime", "notsentPartTime", "notsent"},
{ "approved", "zSeveralEntries", "zSeveralEntries",
"zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
"zSeveralEntries" },
{ "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice" }
String[][] pointLabels = {
{ "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1",
"2", "1", "1" }
String[][][] timeValues = {
{ { "20020528", "20020606" }, { "20020606", "20020608" },
{ "20020610", "20020611" } },
{ { "20020531", "20020606" } },
{ { "20020607", "20020613" } },
{ { "20020527", "20020601" }, { "20020606", "20020607" },
{ "20020612", "20020613" }, { "20020617", "20020619"} },
{ { "20020531", "20020606" }, { "20020531", "20020601" },
{ "20020601", "20020602" }, { "20020602", "20020603" },
{ "20020603", "20020604" }, { "20020604", "20020605" },
{ "20020605", "20020606" } },
{ { "20020527", "20020528" }, { "20020528", "20020529" },
{ "20020529", "20020530" }, { "20020530", "20020531" },
{ "20020531", "20020601" }, { "20020603", "20020604" },
{ "20020604", "20020605" }, { "20020605", "20020606" },
{ "20020606", "20020607" }, { "20020607", "20020608" },
{ "20020610", "20020611" }, { "20020611", "20020612" },
{ "20020612", "20020613" }, { "20020617", "20020618" },
{ "20020618", "20020619" }}
String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
IPrivateSBusinessGraphicsSampleView.ICategoryElement catElement = catNode.createCategoryElement();
catNode.addElement(catElement);
catElement.setDescription(catLabels[catIndex]);
// loop over series
IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
seriesNode.addElement(seriesElement);
// set series attributes (...)
IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
// loop over points
for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; ++pointIndex)
IPrivateSBusinessGraphicsSampleView.IPointElement
pointElement = pointNode.createPointElement();
pointNode.addElement(pointElement);
String ename = s[pointIndex];
wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);
pointElement.setToolTip(ename );
catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e);
By the above code ,I am getting the tool tip with the value "a" in all locations.
But I need to have different values in the tooltip corresponding to the location.
Please Help....
Thanks in advance,
Shamilahi,
Still I did not get the dynamic tool tip..........
In wdDoInit() I have written the following code
try
String[] catLabels = { "Team 1", "\1Tomoko Akino", "\1Hans Bosch", "\1Marvin Smith",
"Team 2", "\1Jose Vega", "\1Bao Yin", "Out of office" };
String[][] pointCustomizing = {
{ "approved", "cancelled", "approvedPartTime" },
{ "approved" },
{ "approved" },
{ "sent", "approvedPartTime", "notsentPartTime", "notsent"},
{ "approved", "zSeveralEntries", "zSeveralEntries",
"zSeveralEntries", "zSeveralEntries", "zSeveralEntries",
"zSeveralEntries" },
{ "outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice", "outOfOffice",
"outOfOffice", "outOfOffice", "outOfOffice" } };
String[][] pointLabels = {{ " ", " ", " " },{ " " },{ " " },{ " ", " ", " ", " "},{ " ", " ", " ", " ", " ", " ", " " },
{ "1", "2", "2", "2", "4", "3", "3", "3", "1", "1", "2", "1", "2", "1", "1" } };
String[][][] timeValues = {{ { "20020528", "20020606" },
{ "20020606", "20020608" },
{ "20020610", "20020611" } },
{ { "20020531", "20020606" } },
{ { "20020607", "20020613" } },
{ { "20020527", "20020601" },
{ "20020606", "20020607" },
{ "20020612", "20020613" },
{ "20020617", "20020619"} },
{ { "20020531", "20020606" }, { "20020531", "20020601" },
{ "20020601", "20020602" }, { "20020602", "20020603" },
{ "20020603", "20020604" }, { "20020604", "20020605" },
{ "20020605", "20020606" } },
{ { "20020527", "20020528" }, { "20020528", "20020529" },
{ "20020529", "20020530" }, { "20020530", "20020531" },
{ "20020531", "20020601" }, { "20020603", "20020604" },
{ "20020604", "20020605" }, { "20020605", "20020606" },
{ "20020606", "20020607" }, { "20020607", "20020608" },
{ "20020610", "20020611" }, { "20020611", "20020612" },
{ "20020612", "20020613" }, { "20020617", "20020618" },
{ "20020618", "20020619" }} };
String s[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","a14",};
IPrivateSBusinessGraphicsSampleView.ICategoryNode catNode = wdContext.nodeCategory();
IPrivateSBusinessGraphicsSampleView.ICategoryElement catElement;
for (int catIndex = 0; catIndex < catLabels.length; ++catIndex)
catElement = catNode.createCategoryElement();
catNode.addElement(catElement);
catElement.setDescription(catLabels[catIndex]);
// loop over series
IPrivateSBusinessGraphicsSampleView.ISeriesNode seriesNode = wdContext.nodeSeries();
for (int seriesIndex = 0; seriesIndex < timeValues.length; ++seriesIndex)
IPrivateSBusinessGraphicsSampleView.ISeriesElement seriesElement = seriesNode.createSeriesElement();
seriesNode.addElement(seriesElement);
// set series attributes (...)
IPrivateSBusinessGraphicsSampleView.IPointNode pointNode = seriesElement.nodePoint();
IPrivateSBusinessGraphicsSampleView.IPointElement pointElement;
// loop over points
for (int pointIndex = 0; pointIndex < timeValues[seriesIndex].length; pointIndex++)
//IPrivateSBusinessGraphicsSampleView.IPointElement
pointElement = pointNode.createPointElement();
pointNode.addElement(pointElement);
String ename = s[pointIndex];
wdComponentAPI.getMessageManager().reportSuccess("name:"+ename);
pointElement.setStartValue(timeValues[seriesIndex][pointIndex][0]);
pointElement.setEndValue(timeValues[seriesIndex][pointIndex][1]);
pointElement.setCuId(pointCustomizing[seriesIndex][pointIndex]);
pointElement.setLabel(pointLabels[seriesIndex][pointIndex]);
pointElement.setToolTip(ename );
catch(Exception e){ wdComponentAPI.getMessageManager().reportSuccess("exc2:"+e); }
In wdDoModifyView() I have written the following code
try
IWDBusinessGraphics graph = (IWDBusinessGraphics)view.getElement("BusinessGraphics");
IWDAbstractSeries allSeries[] = graph.getSeriesList();
IWDSimpleSeries series;
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("length : "+allSeries.length+" value:"+allSeries[0]);
for(int j=0;j<allSeries.length;j++)
series = (IWDSimpleSeries)allSeries[j];
for(int i=0;j<wdContext.nodeSeries().size();i++)
wdContext.nodeSeries().setLeadSelection(i);
series.setTooltip(series.getValue());
catch(Exception e)
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("exc modify :"+e);
The node structure is
Root Node
>Category>Description
>Series>Point-->CuId
>Series>Point-->endvalue
>Series>Point -->Startvalue
>Series>Point -->label
>Series>Point --->Tooltip
In BusinessGraphis seriesSource-Series node ,tooltip-Series.Point.ToolTip is mapped
In Category description-Category.Description is mapped
In Series pointsource-Series.Point, tooltip-series.point.tooltip is mapped
In Point CustomisingId-eries.point.cuId.label-Series.label, tooltip-series.point.Tooltip,valuesource -series.point is mapped
In Numericvalue value-series.point.startvalue is mapped
In Numericvalue value-series.point.endvalue is mapped
When I deploy my application I am getting <b>java.lang.ClassCastException</b> Exception at the line <b>series = (IWDSimpleSeries)allSeries[j];</b>
What is reaseon?.....
Please help..............
I want to get dynamic value in the tool tip of the graph.
Thanks in advance,
Shamila, -
How to use series in business graphic ui element
Hi All,
How to use the series in business graphic ui element? my requirement is i have to display the sales in selected months in graph(these values dont know at design time).
Regards
SrikanthHi,
Use the dynamic node and bind this node to the BG source node and series nodes.
Create a node and bind this node to the BG source and the value that you want to shown in series has to be bound to that attribute of the node and similarly with the category.
Check out for the dynamic node creation and bind this node to the BG.
Regards,
Lekha. -
Problem with Business Graphic:
Hi Everybody!
I am working with a UI control Business Graphic in WebDynpro Java,
I need to change the text of the legend, and is taking an automatic value, what is the property in the Chart Designer where I can adjust this?
Thanks in advance for your help.
Edited by: Briger Palacios on Jul 6, 2011 11:16 PMHi Briger,
For Changing ur own legend , just write the label property of "SimpleSeries" ,which comes under your "BusinessGraphics" .
As many simple series will be there, that much no of legend is require, so just write your label of each simple series.
if any doubt , plz let me knw.
Regards
Brajesh Kumar -
Business Graphics Tool - Series
Hello All,
I have developed a Graph using the Business Graphics charting tool. The application is a Web Dynpro application.
My graph has to display two lines (or range of values). In order to do that, I have created two Data Series, to which I pass values at run time. The Graph is appearing correctly.
How ever some of the values in both the series are the same. Hence the two lines criss-cross each other. At this point the values displayed on the graph becomes jumbled up.
I also saw an option for creating 'Series' objects. Here we can set whether the labels should appear on the left side of the line, its format etc. etc. But I am not finding a way to interlink the Series object, with the Data Series object. The setting would be like:-
Data Series 1 would be using Series Object 1 (in which the value labels would appear on the left side of the line)
Data Series 2 would be using Series Object 2 (in which the value labels would appear on the right side of the line)
Any help is appreciated. TIA
PKS.Hi,
the connection between your customizing settings and the data is done using a customizing ID, i.e. tell WD the ID of each series and use exactly the same ID in the chart designer when creating the customizing settings (please note that you can easily rename the default names as desired).
Regards, Kai -
Business Graphics negative values
Hi All,
I'm using business graphics graph. I bind a node with data to the category and to the series (the same node).
The problem starts if the series has negative values - instead of showing them as is on the graph it shows their absolute values and the graph is displayed incorrectly.
Is there any way to rectify this behavior?
AviadHi Maksim Rashchynski,
Model Node --> History_Periods
Model Attribute --> MonthYear (String)
Model Attribute --> Quantity (decimal)
The business graphics I am using is the graph with the attribute 'MonthYear' bound to a category and the attribute 'Quantity' bound to a SimpleSeries.
Thanks,
Aviad -
Business Graphics - Series Label
Hi,
I have 1 Category and 4 series in a Business Graphics. I want to display the Series Labels dynamically, and i have to map to the Context Variables for the Labels. But, i am not seeing any option to map the Label property to the Context Variable.
Any Ideas? Please let me know.
ThanksHi,
I assume you are currently using the SimpleSeries in your application. Try to use Series with Points und Values. It is more complicated, but gives you more possibilities such as binding labels etc.
Hope that helps
Jens -
Problem with Business Graphics
Hai,
I am using Business graphics , I Used to display the simple series in a <b>coloumns</b> graph.
I want to display the total amount of the graph in top of every coloumn..
I want to display the value of the coloumn at the top of the coloumn.
i need the above graph as
3
2
1
|----
How to display the values in graph like this.....
regards,
Message was edited by: Naga Raju Meesalahai,
my context structure is like this
+ABC
series2(double)
series3(double)
series4(double)
series5(double)
series6(double)
My UIElement Structuer
+BG1
Category1
SimpleSeries2
SimpleSeries3
SimpleSeries4
SimpleSeries5
SimpleSeries6
code is like this..
IPrivateFBGAppView.IAbcNode aNode = wdContext.nodeAbc();
IPrivateBGAppView.IAbcElement elm;
elm = wdContext.createAbcElement();
elm.setCategoryText("Cat");
elm.setSeries2(32);
elm.setSeries3(23);
elm.setSeries4(45);
elm.setSeries5(32);
elm.setSeries6(18);
al.add(elm);
regards,
Message was edited by: Naga Raju Meesala
Maybe you are looking for
-
Ipod freezing itunes, the last problem in a long list
So ill start from the beginning with the problems ive had with my ipod... The first problem i had started maybe 6 months ago. My ipod would just stop playing when it played certain songs. Everything else worked fine, it would just stop sometimes. The
-
Windows 7 blinks on a iMac i7 with ATI Radeon 4850
Hi, just installed Win 7 in the iMac i7 and it doesn't stop blinking. Says it has recovered from a driver error on a on. You can't use the SO. Is there any solution? I've tried to install all kind of drivers (the ones with Windows Update, Catalyst an
-
I just got an iphone but I am going back to Philippines
Right now I am here at the US, specifically, at San Jose California. I got an iphone while I am here at the US doing my training. When I finish my training I am going back to Philippines where I am working. Can I use the iphone even if I am in Philip
-
Hi, We are getting the excel file generated out of report RDF by specifying the DESFORMAT=spreadsheet. This works fine and excel file opens when we run the report with proper output. However, when we try to 'save as' the excel file opened, the defaul
-
How to Display HTML content in Discoverer Viewer?
Hi, Is there any way to display html in the Discoverer Viewer 4i or 9i ? The HTML code could be stored in a CLOB, varchar2 field or also in a referenced HTML side. What I want is that the HTML code is already displayed in the Discoverer Viewer. I kno