0

私はいくつかのxmlデータを持っています

<data>
   <point id="agent1">
     <changes>
       <location>
          <x>1.45</x>
          <y>2.35</y>
       </location>
       <location>
          <x>5.45</x>
          <y>1.55</y>
       </location>
     </changes>
   </point>
   <point id="agent2">
     <changes>
       <location>
          <x>1.55</x>
          <y>3.65</y>
       </location>
       <location>
          <x>3.75</x>
          <y>2.55</y>
       </location>
     </changes>
   </point>
</data>

xslt を使用して html でチャートを生成し、xml でソース データを生成することは可能でしょうか。助言がありますか?ポイント要素(ポイントの位置)にいくつかの色がある散布図を生成するための軽量ロジックが必要です。たとえば、agent2の位置には赤い色が必要です。ポイント位置の色は、実行時にランダムに生成できます。チャートはポイント位置に合わせてスケーリングする必要があります。

4

0 に答える 0