diff --git a/index.html b/index.html
index 437f9b1..918ec3c 100644
--- a/index.html
+++ b/index.html
@@ -1444,6 +1444,14 @@
+
+
+
+
diff --git a/js/ui/chart.js b/js/ui/chart.js
index 61a0a73..cb897c3 100644
--- a/js/ui/chart.js
+++ b/js/ui/chart.js
@@ -319,6 +319,16 @@ constructor() {
},
},
handleScroll: {
+ // Setup price format selector change handler
+ const priceSelect = document.getElementById("priceFormatSelect");
+ if (priceSelect) {
+ priceSelect.addEventListener("change", (e) => {
+ const precision = parseInt(e.target.value);
+ this.chart.priceScale().applyOptions({
+ priceFormat: { type: "price", precision: precision, minMove: precision===0 ? 1 : 0.0001 }
+ });
+ });
+ }
vertTouchDrag: false,
},
});