HOSTING

Share an ApexCharts chart as a link

An ApexCharts chart draws in the browser, so it fits in one HTML file. Load ApexCharts from a CDN, put the series in the options, upload the file, and send a link that opens the interactive chart.

4 min read·

ApexCharts draws tooltips, zoom and legend toggles in the browser. A screenshot drops all of them, and a project folder that loads a separate data file breaks when the recipient opens it from disk, because a request for a local file is blocked on a file:// page.

One HTML file with ApexCharts loaded from a CDN and the data inside it, hosted at a link, opens the working chart on any device.

Put the chart in one file

Create chart.html with this structure:

  • ✓<!doctype html>, <meta charset="utf-8"> and <meta name="viewport" content="width=device-width, initial-scale=1"> in the head.
  • ✓<script src="https://cdn.jsdelivr.net/npm/apexcharts@8.4.1/dist/apexcharts.min.js"></script> to load ApexCharts. Pinning the version keeps the chart from changing when a new release ships.
  • ✓An empty container, such as <div id="chart"></div>. ApexCharts takes the height from the options and fills the container's width.
  • ✓A <script> block after the container: new ApexCharts(document.getElementById("chart"), { chart: { type: "bar", height: 350 }, series: [{ name: "Signups", data: [12, 19, 27] }], xaxis: { categories: ["Jan", "Feb", "Mar"] } }).render();
  • ✓Tested on ApexCharts 8.4.1: that file drew three bars labeled Jan, Feb and Mar. The chart redraws when the window resizes, so the same file fits a phone screen.

Keep the data inside the page

A chart that loads its numbers with fetch("data.json") requests a second file. An uploaded page is hosted on its own, so that request fails and the chart stays empty.

Put the numbers in the series array. For a time series, give each point as { x: "2026-01-05", y: 12 } and set xaxis: { type: "datetime" }. A spreadsheet export can be pasted in as a JavaScript array of rows and mapped into that shape in the same script block.

Data that already lives at a public URL which allows cross-origin requests can stay as a fetch() with the full https:// address. Call chart.updateSeries() once the response arrives.

Upload it and send the link

Drag the .html file onto the FileShare Pro dashboard and copy the link. The chart draws when the page opens. Tooltips, zoom and legend toggles work as they did locally, and viewers need no account.

If the page is blank once hosted, open the browser console. "ApexCharts is not defined" means the script tag is missing or comes after your chart code; a failed request for a .json or .csv file means data was left outside the page. Why an AI page works in chat but breaks when hosted covers charts an assistant wrote.

ApexCharts is free under its community license only for organizations below a revenue threshold; larger companies need a paid license. Check the LICENSE.md in the package before you use it for a business chart.

Turn on comments and viewers can leave a note on the page after typing a name. When the numbers change, upload the new file over the old one and the link stays the same: updating a shared link without changing it.

Other chart libraries: Highcharts, ECharts, Chart.js, Google Charts, Plotly, amCharts.

Frequently asked

How do I share an ApexCharts chart without a web server?

Put a script tag that loads ApexCharts from a CDN, an empty container, your new ApexCharts(...).render() call and the data into one HTML file, upload it to a host that serves HTML as a web page, and send the link.

Why is my ApexCharts chart blank after upload?

Usually the ApexCharts script tag is missing or loads after the chart code, render() was never called, or the data comes from a file that was not uploaded. Check the browser console for the exact error.

Do zoom and tooltips work in the shared link?

Yes. The hosted page runs the same JavaScript as your local file, so tooltips, zoom, the toolbar and legend toggles behave the same.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free