Line Chart
Best for showing trends over continuous time
#chart-showcase-line

Use when: you have continuous data over time — daily shipments, revenue, or on-time rate. Use multi-series lines to compare cohorts.

Bar Chart
Compare discrete categories
#chart-showcase-bar

Use when: comparing values across categories — zones, drivers, vehicle types. Horizontal bars work better for long labels.

Area Chart
Emphasize volume over time
#chart-showcase-area

Use when: showing cumulative or aggregate totals — total parcels shipped, monthly revenue. The filled area emphasizes magnitude.

Donut Chart
Show parts of a whole
#chart-showcase-donut

Use when: visualizing proportions — delivery status mix, payment method breakdown. Limit to 5 segments for legibility.

Radar Chart
Compare multiple metrics across categories
#chart-showcase-radar

Use when: comparing one entity across 4-8 dimensions — driver performance (speed, safety, ratings), vehicle health profiles.

Radial Bar Chart
KPI-style circular gauges
#chart-showcase-radial

Use when: displaying progress toward a goal — capacity utilization, on-time rate, fleet readiness. Eye-catching for dashboards.

Implementation guide
How to use a chart in your page
STEP 1

Add a container div

Include an empty <div> with one of the predefined chart IDs and a height utility class.

<div id="chart-revenue"
     class="chart-h-300">
</div>
STEP 2

Include the scripts

Before </body>, include ApexCharts then the local charts.js. The chart will render automatically on DOM ready.

<script src="apexcharts.min.js">
</script>
<script src="assets/js/charts.js">
</script>
STEP 3

Customize as needed

Edit charts.js to change data, labels, or colors. Each chart is keyed by its container ID.

charts['chart-revenue'] =
  function() {
    /* your options */
  };
Chart height utilities
Pre-built height classes to keep your dashboard rhythmic
ClassHeightBest for
.chart-h-200200pxSparklines, mini-cards, compact KPI graphs
.chart-h-260260pxSide widgets, small radial bars
.chart-h-300300pxStandard dashboard charts (most common)
.chart-h-340340pxFeatured trend charts, large bars
.chart-h-400400pxHero charts, full-width report charts