我正在写这篇文章之后的甘特图,我几乎准备好了,但我遇到了以下问题。
下面的代码显示了我使用ChartDesigner设计的甘特图,但它只显示了类别1中的所有方框!如何使类别2(在下面的代码中)下的框显示在类别2中?
APPEND '<?xml version="1.0" encoding="utf-8"?>' TO lt_data_text.
APPEND '<ChartData> ' TO lt_data_text.
APPEND '<Categories><Category >Category1</Category></Categories>' TO lt_data_text.
APPEND '<Series customizing="Series1">' TO lt_data_text.
APPEND '<Point>' TO lt_data_text.
APPEND '<Value type="time">20000301</Value>' TO lt_data_text.
APPEND '<Value type="time">20000305</Value>' TO lt_data_text.
APPEND '<Value type="time">20000310</Value>' TO lt_data_text.
APPEND '<Value type="time">20000319</Value>' TO lt_data_text.
APPEND '</Point>' TO lt_data_text.
APPEND '</Series>' TO lt_data_text.
APPEND '<Categories><Category >Category2</Category></Categories>' TO lt_data_text.
APPEND '<Series customizing="Series2" >' TO lt_data_text.
APPEND '<Point>' TO lt_data_text.
APPEND '<Value type="time">20000310</Value>' TO lt_data_text.
APPEND '<Value type="time">20000315</Value>' TO lt_data_text.
APPEND '<Value type="time">20000320</Value>' TO lt_data_text.
APPEND '<Value type="time">20000329</Value>' TO lt_data_text.
APPEND '</Point>' TO lt_data_text.
APPEND '</Series>' TO lt_data_text.
APPEND '</ChartData>' TO lt_data_text.
删除行:
APPEND '<Categories><Category >Category2</Category></Categories>' TO lt_data_text.
变更行:
APPEND '<Categories><Category>Category1</Category></Categories>' TO lt_data_text.
至以下
APPEND '<Categories><Category>Category1</Category><Category>Category2</Category></Categories>' TO lt_data_text.
我想是否应该工作