开发者

SVG Line chart on known axes

I want to create dynamically line chart (svg format).

SVG Line chart on known axes

But svg coordinate system works inverse. Like this:

SVG Line chart on known axes

When I have points like (0,9),(1,3),(2,6), graph will be drawing top to bottom. But svg has rotate function. But when it turned to left (- direction) last value will be first point.

I need to draw line chart like mirroring it. But there is mirror function like roate or scale function :(

Is there any 开发者_运维知识库way to draw line chart on simple x y coordinates like :

SVG Line chart on known axes


Mirroring is scaling by a negative amount. If you scale the y-axis by -1 you should get what you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜