Hello everybody
First of all let me say that I am aware that the previous issue with plotly (accesors) was fixed on 2023-03-01 according to the roadmap: https://www.princexml.com/roadmap/
After I updated our prince version to the newest release, the previous error indeed disappeared. Unfortunately it was just replaced with another error. This is the HTML I'm sending to prince:
When trying to print it from the CLI, this is the error I get:
"prince: assets/javascript/plotly.js:24926: error: TypeError: undefined value is not an object"
This is the plotly.js file I'm using: https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plotly.js
I tried different versions of plotly, also the minified versions but had no success.
My questions:
1. Did anyone have successfully print a graph with plotly and Prince and can tell me how to do it?
2. If not - is there an alternative library that lets me print similar graphs with Prince?
Any tips or suggestions are welcome. I already tried commenting out the part on line 24926 of plotly.js, but it just leads to another error.
Thank you and best regards
First of all let me say that I am aware that the previous issue with plotly (accesors) was fixed on 2023-03-01 according to the roadmap: https://www.princexml.com/roadmap/
After I updated our prince version to the newest release, the previous error indeed disappeared. Unfortunately it was just replaced with another error. This is the HTML I'm sending to prince:
<html>
<body onload="getPlot();">
<div id="tester" style="width:600px;height:250px; background-color: beige;"></div>
<script>
function getPlot()
{
var TESTER = document.getElementById('tester');
Plotly.newPlot( TESTER, [{
x: [1, 2, 3, 4, 5],
y: [1, 2, 4, 8, 16] }], {
margin: { t: 0 } } );
}
</script>
</html>
When trying to print it from the CLI, this is the error I get:
"prince: assets/javascript/plotly.js:24926: error: TypeError: undefined value is not an object"
This is the plotly.js file I'm using: https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plotly.js
I tried different versions of plotly, also the minified versions but had no success.
My questions:
1. Did anyone have successfully print a graph with plotly and Prince and can tell me how to do it?
2. If not - is there an alternative library that lets me print similar graphs with Prince?
Any tips or suggestions are welcome. I already tried commenting out the part on line 24926 of plotly.js, but it just leads to another error.
Thank you and best regards