Skip to content

Commit

Permalink
Merge pull request spotify#21 from gregorybchris/master
Browse files Browse the repository at this point in the history
Update orientation doc string
  • Loading branch information
cphalpert authored Nov 16, 2018
2 parents 730ce56 + a7a5e67 commit 1af49e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chartify/_core/callout.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def line(self,
Args:
location (numeric):
dimension (str, optional): (default: 'width')
orientation (str, optional): (default: 'width')
- 'width'
- 'height'
line_color (str, optional): Color name or hex value.
Expand Down Expand Up @@ -109,15 +109,17 @@ def line_segment(self,
x_start = self._chart.axes._convert_timestamp_to_epoch_ms(x_start)
x_end = self._chart.axes._convert_timestamp_to_epoch_ms(x_end)
line_color = colors.Color(line_color).get_hex_l()
# line_width = '1px'
segment = bokeh.models.Arrow(
x_start=x_start,
y_start=y_start,
x_end=x_end,
y_end=y_end,
end=None,
start=None,
line_color=line_color)
line_color=line_color,
line_width=line_width,
line_dash=line_dash,
line_alpha=line_alpha)

self._chart.figure.add_layout(segment)
return self._chart
Expand Down

0 comments on commit 1af49e7

Please sign in to comment.