Skip to content

Commit e85e88a

Browse files
Try to load data from localized path
1 parent da99e28 commit e85e88a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as d3 from "d3";
33
import { createSpiderChart, type SpiderData } from "./spider.ts";
44

55
async function main() {
6-
const data = (await d3.json("/spider_data.json")) as SpiderData;
6+
const data = (await d3.json("./spider_data.json")) as SpiderData;
77

88
const select = document.getElementById("country-select") as HTMLSelectElement;
99
const slider = document.getElementById("year-slider") as HTMLInputElement;

0 commit comments

Comments
 (0)