1+ {
2+ "component" : " Trail" ,
3+ "examples" : [
4+ {
5+ "name" : " basic" ,
6+ "title" : " basic" ,
7+ "path" : " /docs/components/Trail/basic" ,
8+ "components" : [
9+ {
10+ "component" : " Chart" ,
11+ "lineNumber" : 10 ,
12+ "line" : " <Chart {data} x=\" date\" y=\" value\" yDomain={[0, null]} yNice padding={25} height={300}>"
13+ },
14+ {
15+ "component" : " Layer" ,
16+ "lineNumber" : 11 ,
17+ "line" : " <Layer>"
18+ },
19+ {
20+ "component" : " Axis" ,
21+ "lineNumber" : 12 ,
22+ "line" : " <Axis placement=\" left\" grid rule />"
23+ },
24+ {
25+ "component" : " Trail" ,
26+ "lineNumber" : 14 ,
27+ "line" : " <Trail r={6} class=\" fill-primary\" />"
28+ }
29+ ]
30+ },
31+ {
32+ "name" : " tdf-stage" ,
33+ "title" : " Tour de France Stage Profile" ,
34+ "path" : " /docs/components/Trail/tdf-stage" ,
35+ "components" : [
36+ {
37+ "component" : " Chart" ,
38+ "lineNumber" : 15 ,
39+ "line" : " <Chart"
40+ },
41+ {
42+ "component" : " Layer" ,
43+ "lineNumber" : 24 ,
44+ "line" : " <Layer>"
45+ },
46+ {
47+ "component" : " Axis" ,
48+ "lineNumber" : 25 ,
49+ "line" : " <Axis placement=\" left\" grid label=\" Latitude\" />"
50+ },
51+ {
52+ "component" : " Trail" ,
53+ "lineNumber" : 27 ,
54+ "line" : " <Trail r=\" elev\" class=\" fill-danger/40\" />"
55+ },
56+ {
57+ "component" : " Spline" ,
58+ "lineNumber" : 28 ,
59+ "line" : " <Spline class=\" stroke-1 stroke-surface-content\" />"
60+ }
61+ ],
62+ "description" : " Elevation profile of a Tour de France stage using trail width to encode elevation."
63+ },
64+ {
65+ "name" : " variable-width" ,
66+ "title" : " variable width" ,
67+ "path" : " /docs/components/Trail/variable-width" ,
68+ "components" : [
69+ {
70+ "component" : " Chart" ,
71+ "lineNumber" : 11 ,
72+ "line" : " <Chart {data} x=\" date\" y=\" value\" yDomain={[0, null]} yNice r=\" value\" rScale={scaleLinear()} rRange={[2, 16]} padding={25} height={300}>"
73+ },
74+ {
75+ "component" : " Layer" ,
76+ "lineNumber" : 12 ,
77+ "line" : " <Layer>"
78+ },
79+ {
80+ "component" : " Axis" ,
81+ "lineNumber" : 13 ,
82+ "line" : " <Axis placement=\" left\" grid rule />"
83+ },
84+ {
85+ "component" : " Trail" ,
86+ "lineNumber" : 15 ,
87+ "line" : " <Trail r=\" value\" class=\" fill-primary\" />"
88+ }
89+ ]
90+ }
91+ ],
92+ "usage" : [
93+ {
94+ "example" : " basic" ,
95+ "component" : " Trail" ,
96+ "path" : " /docs/components/Trail/basic" ,
97+ "lineNumber" : 14 ,
98+ "line" : " <Trail r={6} class=\" fill-primary\" />"
99+ },
100+ {
101+ "example" : " tdf-stage" ,
102+ "component" : " Trail" ,
103+ "path" : " /docs/components/Trail/tdf-stage" ,
104+ "lineNumber" : 27 ,
105+ "line" : " <Trail r=\" elev\" class=\" fill-danger/40\" />"
106+ },
107+ {
108+ "example" : " variable-width" ,
109+ "component" : " Trail" ,
110+ "path" : " /docs/components/Trail/variable-width" ,
111+ "lineNumber" : 15 ,
112+ "line" : " <Trail r=\" value\" class=\" fill-primary\" />"
113+ }
114+ ],
115+ "updatedAt" : " 2026-04-03T15:31:25.944Z"
116+ }
0 commit comments