Jsroot: how to remove purple background for histograms displayed using an iframe?

Hi,

We’re building a website to display histograms using the wonderful jsroot. We’re putting the histograms into iframes, as suggested in the docs. But the frame has a purple color. I was wondering if we could disable this, i.e., give the frame a white color, while still using iframes. Does anyone know how to change this?

Example:
http://anwang.web.cern.ch/anwang/bb5/RunTest/test/test.html

Thanks,
Alex

Hi Alex,

I do not see purple color on your drawings.
If you mean default color behind histogram draw - it is default property of JSROOT main HTML file.

Also usage of <iframe> is very simple, but not most efficient way to use JSROOT.
You can create minimal web page like this one:

https://root.cern/js/latest/api.htm#custom_html_read_root_file
https://root.cern/js/latest/api.htm#custom_html_read_root_file_src

In such case you can configure much more HTML attributes.

Regards,
Sergey

Thanks Sergey. I was indeed asking about the default color behind the histogram.

If we can’t change that color, then yes, it sounds like using JSROOT.draw is a good idea.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.