开发者

SVG Line chart on known axes

开发者 https://www.devze.com 2023-01-29 13:54 出处:网络
I want to create dynamically line chart (svg format). But svg coordinate system works inverse. Like this:

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

精彩评论

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