{% extends "pxy_dashboard/partials/base.html" %} 
{% load static %} 

{% block title %}Apex Candlestick Charts{% endblock title %} 

{% block extra_css %} 
{% endblock extra_css %} 


{% block pagetitle %}
{% include "pxy_dashboard/partials/page-title.html" with pagetitle="Candlestick Charts" title="Apex" %}
{% endblock pagetitle %}

{% block content %} 
<div class="row">
    <div class="col-xl-6">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title">Simple Candlestick Chart</h4>
                <div dir="ltr">
                    <div id="simple-candlestick" class="apex-charts" data-colors="#47ad77,#fa5c7c"></div>
                </div>
            </div>
            <!-- end card body-->
        </div>
        <!-- end card -->
    </div>
    <!-- end col-->

    <div class="col-xl-6">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title">Combo Candlestick Chart</h4>
                <div dir="ltr">
                    <div id="combo-candlestick" class="apex-charts" data-colors="#47ad77,#fa5c7c"></div>
                    <div id="combo-bar-candlestick" class="apex-charts" data-colors="#3e60d5,#ffbc00"></div>
                </div>
            </div>
            <!-- end card body-->
        </div>
        <!-- end card -->
    </div>
    <!-- end col-->
</div>
<!-- end row-->

<div class="row">
    <div class="col-xl-6">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title mb-3">Category X-Axis</h4>
                <div dir="ltr">
                    <div id="x-axis-candlestick" class="apex-charts" data-colors="#47ad77,#fa5c7c,#3e60d5"></div>
                </div>
            </div>
            <!-- end card body-->
        </div>
        <!-- end card -->
    </div>
    <!-- end col-->

    <div class="col-xl-6">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title mb-3">Candlestick with Line</h4>
                <div dir="ltr">
                    <div id="candlestick-with-line" class="apex-charts" data-colors="#3e60d5,#47ad77,#fa5c7c"></div>
                </div>
            </div>
            <!-- end card body-->
        </div>
        <!-- end card -->
    </div>
    <!-- end col-->
</div>
<!-- end row-->


{% endblock content %} 

{% block extra_js %} 

        <!-- Apex Charts js -->
        <script src="{% static 'dashboard/vendor/apexcharts/apexcharts.min.js' %}"></script> 

        <!-- Apex Chart Candlestick Demo js -->
        <script src="https://apexcharts.com/samples/assets/ohlc.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.8.17/dayjs.min.js"></script>
        <script src="{% static 'dashboard/js/pages/demo.apex-candlestick.js' %}"></script>        

        <!-- App js -->
        <script src="{% static 'dashboard/js/app.min.js' %}"></script>

{% endblock extra_js %}

