|
1 | 1 | <!DOCTYPE HTML> |
2 | | -<html lang="en" class="ayu" dir="ltr"> |
| 2 | +<html lang="en" class="ayu sidebar-visible" dir="ltr"> |
3 | 3 | <head> |
4 | 4 | <!-- Book generated using mdBook --> |
5 | 5 | <meta charset="UTF-8"> |
|
8 | 8 |
|
9 | 9 |
|
10 | 10 | <!-- Custom HTML head --> |
11 | | - |
| 11 | + |
12 | 12 | <meta name="description" content="Plotly.rs documentation"> |
13 | 13 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
14 | 14 | <meta name="theme-color" content="#ffffff"> |
|
34 | 34 |
|
35 | 35 | <!-- MathJax --> |
36 | 36 | <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
37 | | - </head> |
38 | | - <body class="sidebar-visible no-js"> |
39 | | - <div id="body-container"> |
| 37 | + |
40 | 38 | <!-- Provide site root to javascript --> |
41 | 39 | <script> |
42 | 40 | var path_to_root = ""; |
43 | 41 | var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "ayu"; |
44 | 42 | </script> |
45 | | - |
| 43 | + <!-- Start loading toc.js asap --> |
| 44 | + <script src="toc.js"></script> |
| 45 | + </head> |
| 46 | + <body> |
| 47 | + <div id="body-container"> |
46 | 48 | <!-- Work around some values being stored in localStorage wrapped in quotes --> |
47 | 49 | <script> |
48 | 50 | try { |
|
64 | 66 | var theme; |
65 | 67 | try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } |
66 | 68 | if (theme === null || theme === undefined) { theme = default_theme; } |
67 | | - var html = document.querySelector('html'); |
| 69 | + const html = document.documentElement; |
68 | 70 | html.classList.remove('ayu') |
69 | 71 | html.classList.add(theme); |
70 | | - var body = document.querySelector('body'); |
71 | | - body.classList.remove('no-js') |
72 | | - body.classList.add('js'); |
| 72 | + html.classList.add("js"); |
73 | 73 | </script> |
74 | 74 |
|
75 | 75 | <input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> |
76 | 76 |
|
77 | 77 | <!-- Hide / unhide sidebar before it is displayed --> |
78 | 78 | <script> |
79 | | - var body = document.querySelector('body'); |
80 | 79 | var sidebar = null; |
81 | 80 | var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); |
82 | 81 | if (document.body.clientWidth >= 1080) { |
|
86 | 85 | sidebar = 'hidden'; |
87 | 86 | } |
88 | 87 | sidebar_toggle.checked = sidebar === 'visible'; |
89 | | - body.classList.remove('sidebar-visible'); |
90 | | - body.classList.add("sidebar-" + sidebar); |
| 88 | + html.classList.remove('sidebar-visible'); |
| 89 | + html.classList.add("sidebar-" + sidebar); |
91 | 90 | </script> |
92 | 91 |
|
93 | 92 | <nav id="sidebar" class="sidebar" aria-label="Table of contents"> |
94 | | - <div class="sidebar-scrollbox"> |
95 | | - <ol class="chapter"><li class="chapter-item expanded "><a href="plotly_rs.html"><strong aria-hidden="true">1.</strong> Plotly.rs</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="getting_started.html"><strong aria-hidden="true">1.1.</strong> Getting Started</a></li></ol></li><li class="chapter-item expanded "><a href="fundamentals.html"><strong aria-hidden="true">2.</strong> Fundamentals</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="fundamentals/jupyter_support.html"><strong aria-hidden="true">2.1.</strong> Jupyter Support</a></li><li class="chapter-item "><a href="fundamentals/ndarray_support.html"><strong aria-hidden="true">2.2.</strong> ndarray Support</a></li><li class="chapter-item "><a href="fundamentals/shapes.html"><strong aria-hidden="true">2.3.</strong> Shapes</a></li></ol></li><li class="chapter-item expanded "><a href="recipes.html"><strong aria-hidden="true">3.</strong> Recipes</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/basic_charts.html"><strong aria-hidden="true">3.1.</strong> Basic Charts</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/basic_charts/scatter_plots.html"><strong aria-hidden="true">3.1.1.</strong> Scatter Plots</a></li><li class="chapter-item "><a href="recipes/basic_charts/line_charts.html"><strong aria-hidden="true">3.1.2.</strong> Line Charts</a></li><li class="chapter-item "><a href="recipes/basic_charts/bar_charts.html"><strong aria-hidden="true">3.1.3.</strong> Bar Charts</a></li><li class="chapter-item "><a href="recipes/basic_charts/sankey_diagrams.html"><strong aria-hidden="true">3.1.4.</strong> Sankey Diagrams</a></li></ol></li><li class="chapter-item "><a href="recipes/statistical_charts.html"><strong aria-hidden="true">3.2.</strong> Statistical Charts</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/statistical_charts/error_bars.html"><strong aria-hidden="true">3.2.1.</strong> Error Bars</a></li><li class="chapter-item "><a href="recipes/statistical_charts/box_plots.html"><strong aria-hidden="true">3.2.2.</strong> Box Plots</a></li><li class="chapter-item "><a href="recipes/statistical_charts/histograms.html"><strong aria-hidden="true">3.2.3.</strong> Histograms</a></li></ol></li><li class="chapter-item "><a href="recipes/scientific_charts.html"><strong aria-hidden="true">3.3.</strong> Scientific Charts</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/scientific_charts/contour_plots.html"><strong aria-hidden="true">3.3.1.</strong> Contour Plots</a></li><li class="chapter-item "><a href="recipes/scientific_charts/heatmaps.html"><strong aria-hidden="true">3.3.2.</strong> Heatmaps</a></li></ol></li><li class="chapter-item "><a href="recipes/financial_charts.html"><strong aria-hidden="true">3.4.</strong> Financial Charts</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/financial_charts/time_series_and_date_axes.html"><strong aria-hidden="true">3.4.1.</strong> Time Series and Date Axes</a></li><li class="chapter-item "><a href="recipes/financial_charts/candlestick_charts.html"><strong aria-hidden="true">3.4.2.</strong> Candlestick Charts</a></li><li class="chapter-item "><a href="recipes/financial_charts/ohlc_charts.html"><strong aria-hidden="true">3.4.3.</strong> OHLC Charts</a></li></ol></li><li class="chapter-item "><a href="recipes/3dcharts.html"><strong aria-hidden="true">3.5.</strong> 3D Charts</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/3dcharts/3dcharts.html"><strong aria-hidden="true">3.5.1.</strong> Scatter 3D</a></li></ol></li><li class="chapter-item "><a href="recipes/subplots.html"><strong aria-hidden="true">3.6.</strong> Subplots</a><a class="toggle"><div>❱</div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/subplots/subplots.html"><strong aria-hidden="true">3.6.1.</strong> Subplots</a></li><li class="chapter-item "><a href="recipes/subplots/multiple_axes.html"><strong aria-hidden="true">3.6.2.</strong> Multiple Axes</a></li></ol></li></ol></li></ol> |
96 | | - </div> |
| 93 | + <!-- populated by js --> |
| 94 | + <mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> |
| 95 | + <noscript> |
| 96 | + <iframe class="sidebar-iframe-outer" src="toc.html"></iframe> |
| 97 | + </noscript> |
97 | 98 | <div id="sidebar-resize-handle" class="sidebar-resize-handle"> |
98 | 99 | <div class="sidebar-resize-indicator"></div> |
99 | 100 | </div> |
100 | 101 | </nav> |
101 | 102 |
|
102 | | - <!-- Track and set sidebar scroll position --> |
103 | | - <script> |
104 | | - var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); |
105 | | - sidebarScrollbox.addEventListener('click', function(e) { |
106 | | - if (e.target.tagName === 'A') { |
107 | | - sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); |
108 | | - } |
109 | | - }, { passive: true }); |
110 | | - var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); |
111 | | - sessionStorage.removeItem('sidebar-scroll'); |
112 | | - if (sidebarScrollTop) { |
113 | | - // preserve sidebar scroll position when navigating via links within sidebar |
114 | | - sidebarScrollbox.scrollTop = sidebarScrollTop; |
115 | | - } else { |
116 | | - // scroll sidebar to current active section when navigating via "next/previous chapter" buttons |
117 | | - var activeSection = document.querySelector('#sidebar .active'); |
118 | | - if (activeSection) { |
119 | | - activeSection.scrollIntoView({ block: 'center' }); |
120 | | - } |
121 | | - } |
122 | | - </script> |
123 | | - |
124 | 103 | <div id="page-wrapper" class="page-wrapper"> |
125 | 104 |
|
126 | 105 | <div class="page"> |
|
0 commit comments