Django Bokeh App не отображает график, в консоли написано: bokeh-3.4.0.min.js:616 [bokeh 3.4.0] could not set initial ranges

Я пытаюсь отобразить диаграмму Боке в моем html-шаблоне, но безуспешно, любая помощь будет оценена по достоинству. Заранее спасибо.

Это класс представления:

from bokeh.plotting import figure, show
from bokeh.embed import components
from bokeh.models import ColumnDataSource
from .models import FinancialInstrument, HistoricalData

class Offline(View):
    '''Responsable to indicate the way to the Offline Analysis '''  
    form_class=HugeStatForm
    template_name='charts/offline.html'
    api_key = 'I0T0AM1MH4Y4X0DC'

    def get(self, request):
        user=request.user
        historical_me=FinancialInstrument.objects.all()
        form = self.form_class(historical_me=historical_me)
        #instruments = FinancialInstrument.objects.all()
        
        retrive=HistoricalData.objects.all()
        get_symbol=retrive.filter(instrument__symbol="BTUSD")
        x_values = [key.date for key in get_symbol]
        y_values = [float(key.opening_price) for key in get_symbol]
        source = ColumnDataSource(data=dict(dater=x_values,pricer=y_values))
        plot = figure(title="New title",
                      x_axis_label="Date", y_axis_label="Max Price", x_axis_type="datetime")
        plot.line(x='dater',y='pricer', source=source,line_width=1)

        script, div = components(plot)
        if user.is_authenticated:
            return render(request,self.template_name, {'form':form,'script':script, 'div':div,})
        return redirect('home')

Это мир моего шаблонного представления:

<script src="https://cdn.bokeh.org/bokeh/release/bokeh-3.4.0.min.js" crossorigin="anonymous"></script>

<div class="col mx-0 px-0 d-flex justify-content-start">
   <!-- Bottom Section Content -->
   <!-- Chart goes here -->
   {{ script | safe }}
   {{ div | safe }}
</div>

При загрузке страницы появляется пустой график, а в консоли браузера в режиме разработчика написано "bokeh-3.4.0.min.js:616 [bokeh 3.4.0] could not set initial ranges"

Вот список установленных приложений в моей виртуальной среде:

Пожалуйста, помогите мне сделать мой график визуализированным.

Вернуться на верх