10-03-2017 03:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-03-2017 03:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
An SVG <line> appears to have a round head and a flat tail. Is this by design or is it configurable? I prefer a round head and tail, but I can see how different people have different preferences.
Answered! Go to the Best Answer.

Accepted Solutions
05-21-2018 23:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-21-2018 23:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Either do this in your index.gui:
<line stroke-linecap="round" />
Or put this line in your styles.css:
line {stroke-linecap: round}
10-03-2017 03:17 - edited 10-03-2017 03:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-03-2017 03:17 - edited 10-03-2017 03:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.

10-03-2017 03:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-03-2017 03:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Anthoang wrote:
If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.
That sounds like a good idea, perhaps make it a template symbol. https://dev.fitbit.com/guides/user-interface/svg/#template-symbols

10-03-2017 16:48 - edited 10-03-2017 16:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-03-2017 16:48 - edited 10-03-2017 16:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Anthoang wrote:If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.
I haven't tried that, but I did try a <line> with two svg <circle>, but it doesn't work, because in my experience the rendering engine can never get the width of the line/rectangle equal exactly to the diameter of the circle.
I think it's something to do with the rendering algorithm or anti-aliasing algorithm. There always appears to be a slight bulge caused by the circle, as opposed to a seamless transition from the circle to the line/rectangle.
I'm just asking if it was by design because I intend to incorporate this phenomenon into my design.

05-21-2018 11:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-21-2018 11:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am also interested for this

05-21-2018 23:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-21-2018 23:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Either do this in your index.gui:
<line stroke-linecap="round" />
Or put this line in your styles.css:
line {stroke-linecap: round}
05-22-2018 00:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-22-2018 00:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
WHAT?!? @JonFitbit why isn't this attribute documented?
05-22-2018 00:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

