我有一些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和xml中的源数据在html中生成图表。有什么建议?我想有一些轻量级逻辑来生成散点图,其中点元素(点的位置)具有一些颜色,例如,agent2位置应该具有红色。点位置的颜色可以在运行时随机生成。图表应缩放到点位置。