From b6238c2a6ce28a0594138179b74972392b7da8ff Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 21 Jan 2025 18:36:24 -0700 Subject: add trendline option --- templates/patent.html | 526 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 351 insertions(+), 175 deletions(-) diff --git a/templates/patent.html b/templates/patent.html index 3f97761..8bf862e 100644 --- a/templates/patent.html +++ b/templates/patent.html @@ -1,233 +1,409 @@ - - - Excel Data Plotter with Pyodide - - - + + + Excel Data Plotter with Pyodide + + + -
-

Plotter for Patent

-
-
-
- -
- -
-
-
- - -
-
- - -
-
- - -
-
+
+

Plotter for Patent

+
+
+
+
-
-
- - -
-
- - -
-
- - -
-
- - -
+ +
+ +
+
+ + +
+
+ +
-
-
- - -
+
+ +
-
+
- - +img_data = base64.b64encode(buf.getvalue()).decode('utf-8') + `); + + // Retrieve and display the plot + const imgData = await pyodide.globals.get('img_data'); + document.getElementById('plotCanvas').innerHTML = ``; + } catch (error) { + console.error('Error in plotBarPlot:', error); + alert('An error occurred while plotting the data. Check the console for details.'); + } + } + -- cgit v1.2.3