UNPKG
chrt-dotplot
Version:
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
Dot Plot component for Chrt
chrt.io
chrt-dotplot
/
src
/
lib
/
orient.js
12 lines
(9 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
default
function
orient
(
value
) {
return
this
.
attr
(
'orient'
, value) }
export
function
horizontal
(
) {
return
orient.
call
(
this
,
'horizontal'
) }
export
function
vertical
(
) {
return
orient.
call
(
this
,
'vertical'
) }