小编Ksh*_*hri的帖子

具有动态行程的 SVG 仪表

我正在尝试构建一个类似于以下内容的 SVG: 在此输入图像描述

The strokes are completely dynamic, as they come from an API. I want to place the strokes at the points received (as array of percentage values). Need not be in order and the distance between 2 strokes need not be equal

I am trying with something like below but not able to come up with a logic for the placement of strokes. I tried to follow the answer here: /sf/answers/4625376381/ but the distance between strokes here are equal. …

html javascript css svg meter

6
推荐指数
1
解决办法
1517
查看次数

标签 统计

css ×1

html ×1

javascript ×1

meter ×1

svg ×1