Skip to content

Commit

Permalink
Fixed bug in HLine/VLine datetime handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 10, 2018
1 parent 9b840e6 commit 9889d78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions holoviews/plotting/bokeh/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
arrow_end = {'->': NormalHead, '-[': OpenHead, '-|>': NormalHead,
'-': None}

from ...core.util import datetime_types, dimension_sanitizer, basestring
from ...core.util import dimension_sanitizer, basestring
from ...element import HLine
from ..plot import GenericElementPlot
from .element import (ElementPlot, CompositeElementPlot, ColorbarPlot,
text_properties, line_properties)
from .plot import BokehPlot
from .util import date_to_integer



class TextPlot(ElementPlot):
Expand Down Expand Up @@ -126,8 +126,6 @@ def get_data(self, element, ranges, style):
dim = 'width' if dim == 'height' else 'height'
mapping['dimension'] = dim
loc = element.data
if isinstance(loc, datetime_types):
loc = date_to_integer(loc)
mapping['location'] = loc
return (data, mapping, style)

Expand Down

0 comments on commit 9889d78

Please sign in to comment.