How to - WAD chart type
Hi,
I would like to know how I can create this kind of application using WAD drop down list
I would like to create a drop down list displaying the different chart types so that when I select the chart that I want it updates .
I can achieve this with command function "call chart properties dialog" but thats not what I want as the different charts doesn't display in the list.
thanks
Hi,
Now I want to continue with this task.
I have created drop down list with plain HTML code so how do I proceed.
<!-- insert data providers, items and other template content here -->
chart type
<select name="chart" >
<option value="Pie">pie chart</option>
<option value="bar" >Bar chart</option>
<option value="histogram" >Histogram</option>
</select>
</body>
</html>
Similar Messages
-
How to change chart type to pie
BW gurus..
How can I change the chart type to PIE. I tried righ click on the webItem chart after I dragged it into the template. I do not see the option of changing chart type.
Can any one tell me how do I achieve this..
Thanks a bunch..Hi Raj,
Drag <b> Item Chart, Right click --> Edit Chart --> Right click on the area --> Chart types --> choose PIE </b>
This is easy right ?
Deepak Kunavarapu -
How to bind chart type at run time
Hi,
I want to select chart type at run time using a drop down , i know the class name (CL_WD_BUSINESS_GRAPHICS) which
has to be bind. but iam unable to bind the class.
can any one help me.Hi,
**... check view exists
check me->if_salv_wd_view~r_view is bound.
*... get wd root uie for adding graphic control uie
data:
lr_wd_root type ref to cl_wd_transparent_container.
lr_wd_root ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_root ).
check lr_wd_root is bound.
*... use a group container
data:
lr_wd_group type ref to cl_wd_group.
lr_wd_group ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic_container ).
*... if wd uie group container does not exist create group container
if lr_wd_group is not bound.
lr_wd_group = me->if_salv_wd_comp_table_ui~create_graphic_container( ).
endif.
*... get wd uie graphic
value ?= me->if_salv_wd_view~r_view->get_element( if_salv_wd_comp_table_ui=>c_uie_graphic ).
*... if wd uie graphic does not exist create graphic
if value is not bound.
data:
l_source_category type string,
l_source_series type string,
l_source_point type string.
concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
if_salv_wd_comp_table_data=>c_name_node_graphic_category
into l_source_category.
concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
if_salv_wd_comp_table_data=>c_name_node_graphic_series
into l_source_series.
concatenate if_salv_wd_comp_table_data=>c_name_node_graphic '.'
if_salv_wd_comp_table_data=>c_name_node_graphic_series '.'
if_salv_wd_comp_table_data=>c_name_node_graphic_point
into l_source_point.
value = cl_wd_business_graphics=>new_business_graphics(
view = me->if_salv_wd_view~r_view
id = if_salv_wd_comp_table_ui=>c_uie_graphic
bind_category_source = l_source_category
bind_series_source = l_source_series ).
data:
l_bind_value type string.
data:
lr_wd_category type ref to cl_wd_category.
concatenate l_source_category '.' 'LABEL' into l_bind_value.
lr_wd_category = cl_wd_category=>new_category(
view = me->if_salv_wd_view~r_view
bind_description = l_bind_value
bind_tooltip = l_bind_value ).
value->set_category( lr_wd_category ).
data:
lr_wd_series type ref to cl_wd_series.
concatenate l_source_series '.' 'LABEL' into l_bind_value.
lr_wd_series = cl_wd_series=>new_series(
view = me->if_salv_wd_view~r_view
bind_point_source = l_source_point
bind_label = l_bind_value
bind_tooltip = l_bind_value ).
value->add_series( lr_wd_series ).
data:
lr_wd_point type ref to cl_wd_point.
concatenate l_source_point '.' 'LABEL' into l_bind_value.
lr_wd_point = cl_wd_point=>new_point(
view = me->if_salv_wd_view~r_view
bind_value_source = l_source_point
bind_label = l_bind_value
bind_tooltip = l_bind_value ).
lr_wd_series->set_point( lr_wd_point ).
data:
lr_wd_value type ref to cl_wd_numeric_value.
concatenate l_source_point '.' 'VALUE' into l_bind_value.
lr_wd_value = cl_wd_numeric_value=>new_numeric_value(
view = me->if_salv_wd_view~r_view
bind_value = l_bind_value ).
lr_wd_point->add_value( lr_wd_value ).
me->if_salv_wd_comp_table_ui~add_child_to_container(
r_container = lr_wd_group
r_child = value ).
endif. -
How to change chart type at runtime
hi
this application uses forms 6i client server environment, graph control is being used with og.interept libray,
passing parameters run times thru forms to charts.
issue is that, i want to change chart type at run time, when user changes list item like 'pie' and 'bar' value instead of creating two different charts i.e pie and bar.
below is the code is being used to run charts.
begin
declare
pl_id ParamList;
query0 varchar2(256);
begin
query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
if :ch_type = 'pie' then
og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
og.close('e:\mas\emp2.ogd','g1');
elsif :ch_type = 'bar' then
og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
og.close('e:\mas\emp3.ogd','g1');
end if;
END;
end;
thanks
i'd be appreciated on early reply.
alihi
this application uses forms 6i client server environment, graph control is being used with og.interept libray,
passing parameters run times thru forms to charts.
issue is that, i want to change chart type at run time, when user changes list item like 'pie' and 'bar' value instead of creating two different charts i.e pie and bar.
below is the code is being used to run charts.
begin
declare
pl_id ParamList;
query0 varchar2(256);
begin
query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
if :ch_type = 'pie' then
og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
og.close('e:\mas\emp2.ogd','g1');
elsif :ch_type = 'bar' then
og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
og.close('e:\mas\emp3.ogd','g1');
end if;
END;
end;
thanks
i'd be appreciated on early reply.
ali -
WAD : One chart with 2 differents Chart Type
Hi All,
Im a amateur with Charts in Web Application Designer.
In WAD, i have to create one chart that shows 2 different key figure from a report:
Key Figure 1 : it should be represented as column
Key Figure 2 : it should be represented as line.
Does anybody explain me how can i do it this please?
RegardsHi,
Fetch the chart item from WAD. Add the query/query view in the dataprovider.
Cilck on edit chart. Click Next.
Give the Series count equal to 2. Name the Category and Value axes. Click Next.
Click on series 1 . Make the chart type as Column.
Click on series 2, make the chart type as Line.
You can specify their corresponding vertical and horizontal axes (Primary or secondary) for both the KFs.
I hope this will be helpful.
Thanks,
Sarmistha -
My daughter had completed a chart in pages. I saved it and then clicked on other chart types. Now I can't go back to the original chart she made even though I have not re-saved the file. How can I go back to her original chart with data?
I don't get what you are saying.
Is this all the same document?
What version of Pages?
Have you tried to revert to a previous version?
Peter -
Automatic Colour settings problem for WAD Chart Column type
Hi,
In WAD (BI 7.0) Chart Creation i am having issues with colour settings for Chart item Column type with 3D. I have six key fig in query i am trying to show all KF in Chart. But it is showing only one colour for all keyfigs. atlast I have manually assigned different colours for different series, but no use... the issue remains same.. Please help me on this issue
Thanks in Advance
Regards
HarshHi Harsh,
Please try the following options.
1. Try swapping the axes. Certain charts follow the YX convention.
2. Right Click > Edit > Click on 'Refine' > Click on the chart type on the right frame (Bars/Pie etc) > [OK] Vary Category by Color: Enable this checkbox.
3. If you have finished with these settings, you may switch back to Wizard mode to follow up the settings (Step 3 of 6 - Value Properties)
4. Under Categories in Wizard, just make sure you are giving options to suit all the Categories in an uniform fashion. To begin with don't bother to give a fixed Category Count. (As your chart size may increase dynamically based on GRID data)
5. Goto Refine > Click on Global Settings > Choose 'Color Palette' > Tradeshow/Enjoy/StreamLine/Custom : These are the optional themes which may be well adjusted to suit your requirements.
Thanks,
Arun Bala -
Hi,
I am working on charts of cone type in WAD(7.0).But I am not finding the cone shape charts.Can any one help me out.
Thanks in Advance.
RaviHello Ravi,
Please change you Chart Class type and check. Since CONE is a display model and a type of chart which is available in BI7.0 as well.
Please see this [Chart Types|http://help.sap.com/saphelp_nw04s/helpdata/en/8d/2e373be72b2f48e10000000a11402f/content.htm]
Thanks
Chandran -
WAD 7.0 chart type stacked bars
Hello,
i have created a chart type "stacked bars", now i have one problem, i would like to create a sum over
the bar ? How can i do this. i have the sum in my query.
Thanks in advance
DetlevHi Detlev,
you see the sum (result in the query), but not in the chart, is that right?
If so, it might be, that the web template is cached somewhere (happend to me quite often). So try to delete the cache on the system, where you cannont see the sum. (in ABAP server you can do that in SMICM, in JAVA probably in NWA - but ask basis or portal guys to do that)
It might be also good idea, to test if it is really "chache problem", to first change some other paramater of the chart (colour or something) to see the actual version (the one, where the sum should be seen) is displayed on web or not.
Regards
Pavel -
Is it possible user to select the chart type in WAD??
Hi All,
I have a requirement in WAD, where customer wants to select their own desired chart in WAD.
Is it possible user to select the chart type?? If so please let me know the path where i need to do the setting.
Thanks in Advance.
Regards
SathiyaHi,
you have to press the right mouse button on the chart (it is not so easy - there are 2 different context menus) -> in context menu -> properties -> web item -> chart setting -> chart type
Regards
Erwin Buda -
Where is the wad Stock Chart type in SAP BW 3.5 or the equivalent?
We are currently working with SAP BW 3.5, We have an issue refering to the <b>Stock Chart</b> type, in past versions (3.0b y 3.1) the chart type exist, in 3.5 we do not see it, I<b> assumed the Stock Chart type was substituted</b> for other one, which one?. Please help us!
Hi Experts,
thank you for your answers. Now, I have got the mapping table InfoPackage/ Request-ID.
But, how can I get the actual Request ID in the start routine in BW 3.5?
The tables MONITOR and MONITOR_RECNO don´t store it and they needs to be filled.
MONITOR_RECNO
MSGID
MSGTY
MSGNO
MSGV1
MSGV2
MSGV3
MSGV4
DETLEVEL
RECNO
MONITOR
MSGID
MSGTY
MSGNO
MSGV1
MSGV2
MSGV3
MSGV4
DETLEVEL
Best Regards,
Stephan -
Eliminate negative sign in WAD Chart
hello experts,
I have a WAD Chart and I am using the Stacked Columns100% 2.5D chart type. This chart is based on a query which has a two keyfigures Sales 1 and Sales2. Now some of the values in these key figures are in negatives. So, how can I eliminate those negative signs and allow my chart to treat those values as positive.
for e.g Now My chart shows as Sales1 = -50% and Sales2 = -50%. I want to show these percent values in positive.
Please help and points will be granted.
Thanks,
RishiHi,
Try create a formula (if the Key fig is based on formula )and use absolute function which is present in mathematical functions. That is Abs(Key Fig) is your formula.
Option A.Steps :
1. Make that key figure as always Hide in Display tab in the properties for this Key figure.
2. Create a New formula on that Key figure.
3.In Formula use Absolute Value function ABS on that key figure.
4.Now this will give you the required result you needed.
Option B. Also Create a formula.
Now use this formula
( KF <= 0)( -1)(KF) OR (KF >= 0)*(KF)
Hope this helps,
Regards
CSM Reddy -
Combining two different Chart types into one graph
Hi All,
I am developing a graphical BW report using WAD. I need to place two differnt chart types into one graph.For example, I have Volume and Quantity .Here the volume should be displayed in Bars and Quantity should be displayed in Lines in the same graph. X axis(Country) is same for these two . I am not sure how to achieve this. Please do let me know if anyone has solution for this.
Thanks for your time.
Thanks & Regards,
RajaHi Andreas,
One word I can say is 'Perfect' . Even though I am out of office now,I hope the example perfectly will solve my problem.I will try it.
Thanks for Aduri and Pcrao also for their suggestions .
Thanks again and I assigned points to all to say my thanks
Regards,
Raja -
Different chart types in one chart
Hi guys,
I need to know if there is any wat to mix two different chart types in WAD.
For instance, I have to key figures and I want to draw in the same chart Lines for one KF while I want Bars for the other KF.
Is this possible ?
Regards,This is done using the Secodary Axis. Check the following link.
http://help.sap.com/saphelp_nw70/helpdata/en/0b/ac553bf3a76258e10000000a114084/content.htm -
ALV Graphs: How to set line type graph as default graph
Hi All,
I need to develop a line graph. The fields on the X-axis will change dynamically. Some times they may be 10 field and some times they may be more than 100 fields. I tried with Function Module GFW_PRES_SHOW_MULT. But I can only display maximum 32 fields. Can anyone tell me exact program which helps me to full fill my requirement. It will be a great help if you could told how do display line type graph as default graph in ALV. In REUSE_ALV_GRID_DISPLAY there is a Exporting parameter MT_CHART_TYPES but this help you only to enter description for X-axis and Y-axis.
Many thanks in advance.I would call GRAPH_MATRIX_2D with options depending on representation you wish
look at the program GRBUSG_1 to see how to use it
there you have some options to display bar chart, but you could use other values (complete list of options is available in documentation of function module GRAPH_MATRIX_2D - click on parameter OPTS in help display to see full explanation)
exemple:
P2TYPE = LN to display lines
Maybe you are looking for
-
Changing HTML head in RTF template?
Hello everybody, I have a question concerning RTF templates and BIP's HTML output: Is it possible to add information to the <head> section of HTML pages generated by BI Publisher when creating the RTF template? And if it is, can somebody tell me how
-
I have an ISP that goes down two or three times a month like a hooker with a hundred dollar bill. How in the crap do I keep the I tunes movies that I've purchased. And backed up to my Server which also shares a Folder on the main Computer on a 10(TB)
-
Can't install both GART driver and display driver!!
Ever since I got my k8n neo 2 + 3200 winchester for christmas I have had tons of problems. Problems that even come out of nowhere, like when one night when I was playing WoW, the game crashed and I eventually had to reformat. Ever since then I have b
-
How present picture like apple web site?
How present picture like apple web site? http://www.apple.com/ Mike
-
Help - count function returns strange results
hi everyone, here's my scenario: i'm trying to get the NUMBER OF REPORTS and NUMBER OF IMAGES GROUP BY MONTH from the two tables below. REPORT reportid(*primary key) date IMAGE reportid(*foreign key referring to report's table) image sample output: M