Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with CL_GUI_CHART_ENGINE

Former Member
0 Likes
631

Hi,

I have a dynpro with a custom control, I create an obj from cl_gui_chart_engine. I create some demo data, convert it to XML with CALL TRANSFORMATION. Call the method u201Eset_datau201C. Set Customizing, like barchart or lines and call method u201Eset_customizingu201C.

Then the user will add more data (a second line) into the chart, so I change customizing (u201Eset_customizingu201C ) from barchart to lines and use again set_data with both data. So I wanted to display two lines in 1 chart but only the customizing ist the new one (lines) and not the data so only one line is shown.

In short: I would like to have two lines in one chart.

Can someone help?

Best regards and thanks in advance,

B.Lindackers.

3 REPLIES 3
Read only

Former Member
0 Likes
521

can u paste your code snippet?

Read only

0 Likes
521

I just forgot to "Clear: workarea".

Follow these steps: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13313. [original link is broken] Use the same object and call again set_data and you´ll see two series.

I´ve got a new problem: I want to create a chart with chart type "TimeScatter", but I don´t know how to generate the "data xml".

More informations:

I want to display this graph:

http://i34.tinypic.com/1z688w.jpg

I want to set value for each month, but i don´t know how to generate the data.xml, any solutions?

Edited by: B.Lindackers on Aug 9, 2010 9:55 AM

Edited by: B.Lindackers on Aug 9, 2010 10:00 AM

Read only

Former Member
0 Likes
521

Chart type: Time Scatter