0

Application Express Anychart Flash チャート内で凡例をフォーマットしようとしています。関連する XML セクションは次のとおりです。

<legend enabled="true" position="Right" align="Near" elements_layout="Vertical">
<title enabled="true">
<text>Legend</text>
<font family="Tahoma" size="10" color="0x000000" />
</title>
<icon>
<marker enabled="true" />
</icon>
<font family="Tahoma" size="10" color="0x000000" />
</legend>

単純に 2 つの項目、Sales と Tickets を追加して、正しい色の線アイコンでチャートの線を説明しようとしていますが、代わりに 2 つの一般的なエントリ (Value と Value) が得られます。この XML の適切なコードを整理するのを手伝ってくれる人はいますか?

次のように変更すると:

<legend enabled="true" position="Right" align="Near" elements_layout="Vertical" ignore_auto_item="True">
<title enabled="true">
<text>Legend</text>
<font family="Tahoma" size="10" color="0x000000" />
</title>
<items>
<item>
<text>This is a test</text>
</icon></item>
<item><text>Item 2</text>
</item>
</items>
<icon>
<marker enabled="true" />
</icon>
<font family="Tahoma" size="10" color="0x000000" />
</legend>

これにより、必要な2つのシリーズが得られますが、アイコンはありません。

ここで私の無知を許してください。私はまだ私が望む単純な凡例を得ていません。Total_Sales と Total_Tickets の 2 つのシリーズ クエリを使用しています。

SELECT NULL Link,
trunc(tix.timestamp) AS label,  
sum(tixp.Price) AS value
FROM LS_tickets tix LEFT OUTER JOIN
     LS_ticket_prices tixP
     ON tixp.series_prefix = tix.ticket_series
WHERE tix.event_id = :P145_event_id
and tix.event_id = tixp.event_id
and tix.voided_flag != 'Y'
GROUP BY trunc(tix.timestamp)
ORDER BY trunc(tix.timestamp) ASC

SELECT NULL Link,
trunc(tix.timestamp) AS label,  
sum( tixp.quantity ) AS value
FROM LS_tickets tix LEFT OUTER JOIN
     LS_ticket_prices tixP
     ON tixp.series_prefix = tix.ticket_series
WHERE tix.event_id = :P145_event_id
and tix.event_id = tixp.event_id
and tix.voided_flag != 'Y'
GROUP BY trunc(tix.timestamp)
ORDER BY 1

しかし、次のように各ラベルに固有のアイコン情報を追加しようとすると、空の凡例が表示されます。

<legend enabled="true" position="Right" align="Near" elements_layout="Vertical" ignore_auto_item="True">
<title enabled="true">
<text>Legend</text>
<font family="Tahoma" size="10" color="0x000000" />
</title>
<icon><marker enabled="true" /></icon>
<items>
<item source="Series" series="Total_Sales">
<text>{%Icon} Sales</text>
</item>
<item source="Series" series="Total_Tickets"><text>{%Icon} Tickets</text>
</item>
</items>
<font family="Tahoma" size="10" color="0x000000" />
</legend>
4

1 に答える 1

1

使用しているデータ構造によって異なります。これらの xml 設定を使用して、凡例に表示するデータを指定できます。

各自動アイテムには、「ポイント」または「シリーズ」の属性ソースと、シリーズ名を指定するシリーズがあります: http://www.anychart.com/products/anychart/docs/users-guide/index.html?legend -text-formatting.html#automatic-items

カスタム ライン アイテムの場合、任意の情報を含む独自のアイテムを追加できます: http://www.anychart.com/products/anychart/docs/users-guide/index.html?legend-text-formatting.html#custom-アイテム

アイテムの値をフォーマットするために使用できるすべてのキーワードのリストを次に示します

apex がシリーズを操作しているときに問題が発生したようです。それらはすべて「VALUE」に設定された名前で作成されます。同様の問題の解決策は次のとおりです

于 2014-10-01T01:10:59.633 に答える