0

我正在处理这篇文章之后的甘特图,我几乎准备好了,但我遇到了以下问题。

下面的代码向我展示了我使用 ChartDesigner 设计的甘特图,但它仅显示类别 1 中的所有框!如何使 Category2 下的框(在下面的代码中)出现在 Category 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.
4

1 回答 1

0

删除行:

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.

我猜应该可以

于 2013-11-26T15:24:01.570 回答