# \#jsroot

**URL:** https://root-forum.cern.ch/tag/jsroot/11.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Changing labels size on TF1 and TGraph](https://root-forum.cern.ch/t/changing-labels-size-on-tf1-and-tgraph/65072)

<div class="topic-metadata">

**Author:** [@Georgios](https://root-forum.cern.ch/u/Georgios)\
**Replies:** 8\
**Last updated:** [November 28, 2026, 9:55am UTC](https://root-forum.cern.ch/t/changing-labels-size-on-tf1-and-tgraph/65072 "2026-11-28T09:55:39Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi, is there a way to change TF1, TGraph axes parameters like in TH1? …

---

## [JSROOT in interactive school board](https://root-forum.cern.ch/t/jsroot-in-interactive-school-board/65050)

<div class="topic-metadata">

**Author:** [@Georgios](https://root-forum.cern.ch/u/Georgios)\
**Replies:** 12\
**Last updated:** [November 27, 2026, 8:13am UTC](https://root-forum.cern.ch/t/jsroot-in-interactive-school-board/65050 "2026-11-27T08:13:25Z")

</div>

Hello everyone, i use JSROOT to create some graphs to show in an interactive school board. Is there anything i can do to to keep mouse events and override touch events from JSROOT? I cant move graphical elements like…

---

## [Rare instance of JSROOT loading a TGraph incorrectly](https://root-forum.cern.ch/t/rare-instance-of-jsroot-loading-a-tgraph-incorrectly/64966)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 4\
**Last updated:** [August 17, 2026, 6:23am UTC](https://root-forum.cern.ch/t/rare-instance-of-jsroot-loading-a-tgraph-incorrectly/64966 "2026-08-17T06:23:45Z")

</div>

Using root.cern/js/latest By chance I discovered that one of my root graphs had one x-value changed when displayed using JSROOT. After a hard reload & clearing the browser caches, the graph was loaded correctly. I saw…

---

## [TGraph/TMultiGraph yaxis Ndivisions and range](https://root-forum.cern.ch/t/tgraph-tmultigraph-yaxis-ndivisions-and-range/64782)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 9\
**Last updated:** [April 7, 2026, 4:25pm UTC](https://root-forum.cern.ch/t/tgraph-tmultigraph-yaxis-ndivisions-and-range/64782 "2026-04-07T16:25:26Z")

</div>

Hi, I am finding that JSROOT ignores the y-axis Ndivisions and SetRangeUser when it loads and displays graphs stored in a root file. Is there a way for me to change that? (I can set the range again in JSROOT using ob…

---

## [JSROOT: Tooltip callback click handler for TGraphs](https://root-forum.cern.ch/t/jsroot-tooltip-callback-click-handler-for-tgraphs/64744)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 5\
**Last updated:** [March 10, 2026, 11:57am UTC](https://root-forum.cern.ch/t/jsroot-tooltip-callback-click-handler-for-tgraphs/64744 "2026-03-10T11:57:50Z")

</div>

I tried to adapt the Tooltip user handler example from JavaScript ROOT API examples for a TGraph, by changing createHistogram to createTGraph and providing the arrays needed. The webpage displays the graph without loggi…

---

## [JSROOT: Some RNTuples are not fully displayed](https://root-forum.cern.ch/t/jsroot-some-rntuples-are-not-fully-displayed/64517)

<div class="topic-metadata">

**Author:** [@thea](https://root-forum.cern.ch/u/thea)\
**Replies:** 5\
**Last updated:** [February 3, 2026, 7:40am UTC](https://root-forum.cern.ch/t/jsroot-some-rntuples-are-not-fully-displayed/64517 "2026-02-03T07:40:29Z")

</div>

Hi, While playing with RDataFrames and RNtuples, I noticed that JSROOT sometimes fails to show the content of RNTuples in the viewer. This is not the case with all RNtuples. I was able to explore and plot the content o…

---

## [Issues with displaying TH1s on JSROOT on webpages](https://root-forum.cern.ch/t/issues-with-displaying-th1s-on-jsroot-on-webpages/64312)

<div class="topic-metadata">

**Author:** [@Kaan\_Guven](https://root-forum.cern.ch/u/Kaan_Guven)\
**Replies:** 4\
**Last updated:** [October 13, 2025, 10:41am UTC](https://root-forum.cern.ch/t/issues-with-displaying-th1s-on-jsroot-on-webpages/64312 "2025-10-13T10:41:28Z")

</div>

Hi! I experienced some problems when I tried to create a ROOT Browser page on my personal CERN home page. I attempted to integrate it with my plot browser that you can see here: https://guven.web.cern.ch/test\_jsroot T…

---

## [How to preserve manually selected draw option in JSROOT canvas?](https://root-forum.cern.ch/t/how-to-preserve-manually-selected-draw-option-in-jsroot-canvas/64125)

<div class="topic-metadata">

**Author:** [@Serguei\_Kolos1](https://root-forum.cern.ch/u/Serguei_Kolos1)\
**Replies:** 10\
**Last updated:** [September 8, 2025, 1:16pm UTC](https://root-forum.cern.ch/t/how-to-preserve-manually-selected-draw-option-in-jsroot-canvas/64125 "2025-09-08T13:16:58Z")

</div>

Hello I have been using JSROOT to draw histograms in a web browser. The configuration of the web page is saved in a database (e.g., colors and font parameters of the histograms interactively selected by the user). How…

---

## [Problem setting JSROOT aspect ratio](https://root-forum.cern.ch/t/problem-setting-jsroot-aspect-ratio/64097)

<div class="topic-metadata">

**Author:** [@dondo](https://root-forum.cern.ch/u/dondo)\
**Replies:** 7\
**Last updated:** [September 8, 2025, 8:21am UTC](https://root-forum.cern.ch/t/problem-setting-jsroot-aspect-ratio/64097 "2025-09-08T08:21:08Z")

</div>

Hello @linev , I am wondering how can i change the aspect ratio of the histogram saved in the root file. When I change the size of the div in which the plot is plotted the graphics is just stretched, and not rescaled pr…

---

## [Howto setup JS-ROOT](https://root-forum.cern.ch/t/howto-setup-js-root/64122)

<div class="topic-metadata">

**Author:** [@adrian\_sev](https://root-forum.cern.ch/u/adrian_sev)\
**Replies:** 7\
**Last updated:** [September 5, 2025, 10:45am UTC](https://root-forum.cern.ch/t/howto-setup-js-root/64122 "2025-09-05T10:45:38Z")

</div>

Hi! I have ROOT (including JS-ROOT) installed on Alma9 from EPEL. I would like to setup JS-ROOT locally but i see no clear (apache) instruction to do so .. i have so far: root@issaf: conf.d # cat jsroot.conf \<FilesMat…

---

## [Custom palette in JSROOT](https://root-forum.cern.ch/t/custom-palette-in-jsroot/64090)

<div class="topic-metadata">

**Author:** [@dondo](https://root-forum.cern.ch/u/dondo)\
**Replies:** 7\
**Last updated:** [September 5, 2025, 5:25am UTC](https://root-forum.cern.ch/t/custom-palette-in-jsroot/64090 "2025-09-05T05:25:27Z")

</div>

Dear JSROOT experts, I would need help setting up custom palette for TH2D histograms in JSROOT. Is there some built-in method for doing this? My issue is that I need to mask bins with empty content (make them appear as …

---

## [Auto refresh plot with JSRoot](https://root-forum.cern.ch/t/auto-refresh-plot-with-jsroot/63546)

<div class="topic-metadata">

**Author:** [@jb023](https://root-forum.cern.ch/u/jb023)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 3:33pm UTC](https://root-forum.cern.ch/t/auto-refresh-plot-with-jsroot/63546 "2025-05-13T15:33:04Z")

</div>

Hi, Let’s say I want to do a 100% custom UI in HTM+CSS+JS with JSROOT, and load data from a server. I would like to auto refresh the display every second in the case data has changed, with some basic polling: This works…

---

## [Histo Fill patterns in jupyter notebooks (\>7, so jupyterlab engine)](https://root-forum.cern.ch/t/histo-fill-patterns-in-jupyter-notebooks-7-so-jupyterlab-engine/63534)

<div class="topic-metadata">

**Author:** [@malfonsi79](https://root-forum.cern.ch/u/malfonsi79)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 9:42am UTC](https://root-forum.cern.ch/t/histo-fill-patterns-in-jupyter-notebooks-7-so-jupyterlab-engine/63534 "2025-05-12T09:42:23Z")

</div>

Dear all, Are histograms fill patterns (in particular the one with hatches, i.e. 3xxx) implemented in the jsroot of a ROOT jupyter notebook? From a couple of topics in the forum or on github I had the impression that th…

---

## [Limit number of entries in the TTree draw in JSROOT](https://root-forum.cern.ch/t/limit-number-of-entries-in-the-ttree-draw-in-jsroot/63340)

<div class="topic-metadata">

**Author:** [@dondo](https://root-forum.cern.ch/u/dondo)\
**Replies:** 25\
**Last updated:** [April 24, 2025, 2:57pm UTC](https://root-forum.cern.ch/t/limit-number-of-entries-in-the-ttree-draw-in-jsroot/63340 "2025-04-24T14:57:39Z")

</div>

Dear JSROOT experts, I am trying to draw TGraph form the large (~1GB) root file using TTree draw functionality in jsroot. Since the file is very large and the requested branches (Amplitude) contains ~ 1.2e+08 entries, I…

---

## [How to redraw preserving axis settings](https://root-forum.cern.ch/t/how-to-redraw-preserving-axis-settings/63265)

<div class="topic-metadata">

**Author:** [@frezzonico](https://root-forum.cern.ch/u/frezzonico)\
**Replies:** 2\
**Last updated:** [April 1, 2025, 8:12am UTC](https://root-forum.cern.ch/t/how-to-redraw-preserving-axis-settings/63265 "2025-04-01T08:12:41Z")

</div>

Hello, I am implementing a javascript dashboard which every second loads a .ROOT file and draws it in a div: let isFirstDraw = true; async function update(){ let file = await JSROOT.openFile(\`dashboard/resources/${…

---

## [Not refreshed jsroot graphics within jupyter notebook v7 / jupyterlab](https://root-forum.cern.ch/t/not-refreshed-jsroot-graphics-within-jupyter-notebook-v7-jupyterlab/63097)

<div class="topic-metadata">

**Author:** [@malfonsi79](https://root-forum.cern.ch/u/malfonsi79)\
**Replies:** 12\
**Last updated:** [March 25, 2025, 2:36pm UTC](https://root-forum.cern.ch/t/not-refreshed-jsroot-graphics-within-jupyter-notebook-v7-jupyterlab/63097 "2025-03-25T14:36:59Z")

</div>

Dear ROOTers, As I changed from the old Debian 10 to Debian 12, I rebuilt my software stack to have “ROOT notebooks” on the new machines, using a virtual-env to have to proper python packages under my control and compil…

---

## [Jsroot not working in chromium](https://root-forum.cern.ch/t/jsroot-not-working-in-chromium/63201)

<div class="topic-metadata">

**Author:** [@dwielane](https://root-forum.cern.ch/u/dwielane)\
**Replies:** 6\
**Last updated:** [March 24, 2025, 6:39pm UTC](https://root-forum.cern.ch/t/jsroot-not-working-in-chromium/63201 "2025-03-24T18:39:38Z")

</div>

Dear ROOTers, I’m using Jsroot to draw histograms. I open them in following way: var filename = "divided.root"; import {openFile, draw, settings} from '../../../hal\_js/modules/main.mjs'; settings.Palette= 50; let file …

---

## [Jsroot unable to render saved TRatioPlot](https://root-forum.cern.ch/t/jsroot-unable-to-render-saved-tratioplot/63114)

<div class="topic-metadata">

**Author:** [@loopset](https://root-forum.cern.ch/u/loopset)\
**Replies:** 4\
**Last updated:** [March 12, 2025, 5:47pm UTC](https://root-forum.cern.ch/t/jsroot-unable-to-render-saved-tratioplot/63114 "2025-03-12T17:47:37Z")

</div>

Hello all, I’ve implemented a simple website to display some canvas stored in a GitHub repo by using jsroot online. My approach is to create locally some .root files with TCanvas-\>SaveAs("name.root") and then push them …

---

## [Custom Tooltips](https://root-forum.cern.ch/t/custom-tooltips/62993)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 7\
**Last updated:** [March 1, 2025, 4:12am UTC](https://root-forum.cern.ch/t/custom-tooltips/62993 "2025-03-01T04:12:19Z")

</div>

Hi, Please could you give me an example for how to show a tooltip for a JSROOT object (eg filled circle) on a TCanvas? Is the “polar” drawing option supported for 2D histograms in JSROOT? Please could you tell me how …

---

## [THttpServer and a web page autoupdate?](https://root-forum.cern.ch/t/thttpserver-and-a-web-page-autoupdate/63010)

<div class="topic-metadata">

**Author:** [@pavel1murat](https://root-forum.cern.ch/u/pavel1murat)\
**Replies:** 2\
**Last updated:** [February 24, 2025, 5:23pm UTC](https://root-forum.cern.ch/t/thttpserver-and-a-web-page-autoupdate/63010 "2025-02-24T17:23:22Z")

</div>

Dear ROOT experts, I’m running a data quality monitoring job with THttpServer rendering the histograms. I’m setting the URL=http://localhost:8877/win4/?monitoring=2000 in hope that the page would be updated every two s…

---

## [Drawing legend zooms out x-axis to start at 0; how to reset it?](https://root-forum.cern.ch/t/drawing-legend-zooms-out-x-axis-to-start-at-0-how-to-reset-it/61597)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 3\
**Last updated:** [September 9, 2024, 7:23am UTC](https://root-forum.cern.ch/t/drawing-legend-zooms-out-x-axis-to-start-at-0-how-to-reset-it/61597 "2024-09-09T07:23:28Z")

</div>

I am using JSROOT to display several TMultiGraphs online. Without legends, they look ok, but I need legends. I am reading the multigraphs from a root file and constructing the legends in JS. All of these multigraphs h…

---

## [How to draw a TH1 from a TTree branch with a selection in JSROOT?](https://root-forum.cern.ch/t/how-to-draw-a-th1-from-a-ttree-branch-with-a-selection-in-jsroot/60402)

<div class="topic-metadata">

**Author:** [@Ma128-bit](https://root-forum.cern.ch/u/Ma128-bit)\
**Replies:** 2\
**Last updated:** [August 2, 2024, 1:10pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-th1-from-a-ttree-branch-with-a-selection-in-jsroot/60402 "2024-08-02T13:10:22Z")

</div>

Dear experts, I’m new to using JSROOT. I was wondering if there is a way to draw a TH1, from a TBranch of a TTree, by applying a selection directly from the web interface, without modifying the JavaScript code. For ins…

---

## [Color palette not seen correctly by JSROOT](https://root-forum.cern.ch/t/color-palette-not-seen-correctly-by-jsroot/59572)

<div class="topic-metadata">

**Author:** [@pkonopka](https://root-forum.cern.ch/u/pkonopka)\
**Replies:** 4\
**Last updated:** [June 7, 2024, 8:52am UTC](https://root-forum.cern.ch/t/color-palette-not-seen-correctly-by-jsroot/59572 "2024-06-07T08:52:45Z")

</div>

Hello! I ran into a strange issue. Let me start with the following reproducer: auto t = new TTree(); int a = 0; int b = 0; t-\>Branch("a", &a); t-\>Branch("b", &b); t-\>Fill(); a = 1; b = 1; t-\>Fill(); a = 2; b = 3; t-\>Fi…

---

## [How to keep grid drawn even on smaller screens with JSROOT?](https://root-forum.cern.ch/t/how-to-keep-grid-drawn-even-on-smaller-screens-with-jsroot/59555)

<div class="topic-metadata">

**Author:** [@graduta](https://root-forum.cern.ch/u/graduta)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 12:37pm UTC](https://root-forum.cern.ch/t/how-to-keep-grid-drawn-even-on-smaller-screens-with-jsroot/59555 "2024-06-06T12:37:05Z")

</div>

Hi, We have a few users in ALICE that consider it critical to draw multiple plots in the same histogram (in this example, 16 of them). This works very well when using a normal/large screen, but when they use a smaller s…

---

## [Cannot use jsroot in next.js (React)](https://root-forum.cern.ch/t/cannot-use-jsroot-in-next-js-react/59493)

<div class="topic-metadata">

**Author:** [@wiso](https://root-forum.cern.ch/u/wiso)\
**Replies:** 9\
**Last updated:** [May 29, 2024, 8:41am UTC](https://root-forum.cern.ch/t/cannot-use-jsroot-in-next-js-react/59493 "2024-05-29T08:41:50Z")

</div>

I have a web application using next.js (a React framework) This is my simple component page.tsx import { openFile } from 'jsroot'; export default function ExamplePage() { let file = openFile('public/myfile.root');…

---

## [Typescript problem with jsroot: Could not find a declaration file for module 'jsroot'](https://root-forum.cern.ch/t/typescript-problem-with-jsroot-could-not-find-a-declaration-file-for-module-jsroot/59497)

<div class="topic-metadata">

**Author:** [@wiso](https://root-forum.cern.ch/u/wiso)\
**Replies:** 2\
**Last updated:** [May 29, 2024, 8:28am UTC](https://root-forum.cern.ch/t/typescript-problem-with-jsroot-could-not-find-a-declaration-file-for-module-jsroot/59497 "2024-05-29T08:28:03Z")

</div>

when compiling a web application in typescript using jsroot I get the following error: Type error: Could not find a declaration file for module 'jsroot'. '/home/turra/physval-web/node\_modules/jsroot/modules/main.mjs' im…

---

## [Try to load very large file in jsroot error (Accept-Ranges expected)](https://root-forum.cern.ch/t/try-to-load-very-large-file-in-jsroot-error-accept-ranges-expected/59426)

<div class="topic-metadata">

**Author:** [@wiso](https://root-forum.cern.ch/u/wiso)\
**Replies:** 7\
**Last updated:** [May 23, 2024, 8:25am UTC](https://root-forum.cern.ch/t/try-to-load-very-large-file-in-jsroot-error-accept-ranges-expected/59426 "2024-05-23T08:25:41Z")

</div>

I have a minimal webpage in site-content/index.html with \<script type='module'\> import { openFile, draw } from 'https://root.cern/js/latest/modules/main.mjs'; let file = await openFile('example.root'); \</script\>…

---

## [How to superimpose objects in JsROOT canvas?](https://root-forum.cern.ch/t/how-to-superimpose-objects-in-jsroot-canvas/59164)

<div class="topic-metadata">

**Author:** [@Serguei\_Kolos1](https://root-forum.cern.ch/u/Serguei_Kolos1)\
**Replies:** 8\
**Last updated:** [April 29, 2024, 3:56pm UTC](https://root-forum.cern.ch/t/how-to-superimpose-objects-in-jsroot-canvas/59164 "2024-04-29T15:56:19Z")

</div>

Hello Sorry if I missed something obvious. The README file contains an example that shows how to draw multiple objects from the same ROOT file in the same canvas, but I can’t figure out how to do the same for two object…

---

## [JSROOT-based server performance improvement needed](https://root-forum.cern.ch/t/jsroot-based-server-performance-improvement-needed/58265)

<div class="topic-metadata">

**Author:** [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Replies:** 41\
**Last updated:** [March 14, 2024, 10:27am UTC](https://root-forum.cern.ch/t/jsroot-based-server-performance-improvement-needed/58265 "2024-03-14T10:27:31Z")

</div>

A JSROOT-based “remote server” runs on a “distant machine”. I get terrible delays when I try to draw something (canvases with histograms) from this “distant machine”. The “remote server” code which draws and updates th…

---

## [Cut log-y axes in JSROOT](https://root-forum.cern.ch/t/cut-log-y-axes-in-jsroot/58226)

<div class="topic-metadata">

**Author:** [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Replies:** 10\
**Last updated:** [March 12, 2024, 9:10pm UTC](https://root-forum.cern.ch/t/cut-log-y-axes-in-jsroot/58226 "2024-03-12T21:10:15Z")

</div>

I have some TProfile histograms with the y-axis spanning 6 orders of magnitude or so. I can see the whole contents when I draw them with “log-y” in the standard ROOT (in a standard TCanvas). But when I draw them in “JS…

[Next page](https://root-forum.cern.ch/tag/jsroot/11.md?match_all_tags=true&page=1&tags%5B%5D=jsroot)
