{% set title = 'Modules &rsaquo; Sparkline' %}
{% set page = 'modules-sparkline.html' %}
{% extends 'layouts/master.html' %}

{% block content %}
        <section class="section">
          <div class="section-header">
            <h1>Sparkline</h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
              <div class="breadcrumb-item"><a href="#">Modules</a></div>
              <div class="breadcrumb-item">Sparkline</div>
            </div>
          </div>

          <div class="section-body">
            <h2 class="section-title">Sparkline</h2>
            <p class="section-lead">
              We use 'Sparkline' made by 'Gareth Watts'. You can check the full documentation <a href="https://omnipotent.net/jquery.sparkline/">here</a>.
            </p>

            <div class="row">
              <div class="col-12 col-md-6 col-lg-6">
                <div class="card">
                  <div class="card-header">
                    <h4>Line Chart</h4>
                  </div>
                  <div class="card-body">
                    <div class="sparkline-inline"></div>
                  </div>
                </div>
              </div>
              <div class="col-12 col-md-6 col-lg-6">
                <div class="card">
                  <div class="card-header">
                    <h4>Bar Chart</h4>
                  </div>
                  <div class="card-body">
                    <div class="sparkline-bar"></div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-12 col-md-6 col-lg-6">
                <div class="card">
                  <div class="card-header">
                    <h4>Line Chart #2</h4>
                  </div>
                  <div class="card-body">
                    <div class="sparkline-line"></div>
                  </div>
                </div>
              </div>
              <div class="col-12 col-md-6 col-lg-6">
                <div class="card">
                  <div class="card-header">
                    <h4>Pie Chart</h4>
                  </div>
                  <div class="card-body">
                    <div class="text-center">
                      <div class="sparkline-pie d-inline"></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section>
{% endblock %}

{% block plugins_js %}
  <script src="../node_modules/jquery-sparkline/jquery.sparkline.min.js"></script>
{% endblock %}

{% block page_js %}
  <script src="../assets/js/page/modules-sparkline.js"></script>
{% endblock %}
