Replies: 7 comments 2 replies
-
Hello @gauravcodepro, Removing all plugins and other custom stuff would help to pinpoint the issue. Also according to the docs your second example is incorrect:
According to the docs here: https://plotly.com/javascript/getting-started/ |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow thank you and i am packaging the same for a minimal installation to see where it is not picking up the same. as soon as it is ready will post the link here to give a try. Thank you, |
Beta Was this translation helpful? Give feedback.
-
[ (@kamilkrzyskow please see attached a test site i build and put the javascript functions with in the test site and it is listening to the document.getselect.
and everything is working fine and then you can add the encryption by adding those aforementioned lines to the mkdocs.yml and then again
and the charts went off and it is no longer routing the javascript library. let me know. |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow thank you and it can be used. in the test.tag.gz site template i have provided, everything works without the encryption, it is listening to the DOM events and the moment you add the encryption it stops the routing of the library. |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow see this, i checked using the vegalite and vegalite works just fine without the encryption as
but as soon as you enable the encrypted plugin then the vegalite also stops working basically the enrcyption is not allowing the library to route through. Thank you, |
Beta Was this translation helpful? Give feedback.
-
Hi, in you test configuration, you set the extra_javascript:
- <script src="https://cdn.plot.ly/plotly-2.33.0.min.js"></script>
- <script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js">
theme: Why? I don't believe this is the correct syntax. At least Firefox and Edge give me 404 errors this way. But the charts somehow work. Plus, you are not using material theme in your test configuration. Better reopen the issue on the plugin page then. If you are using whatever javascript libraries on an encrypted page, then you might need to reload some scripts (explained here) |
Beta Was this translation helpful? Give feedback.
-
@unverbuggt thank you for taking the time to reply and giving the attention to this. I appreciate this and this will help me solve the problem. I solved it earlier but this will help the other users also. Thank you for your time and attention. Gaurav |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am trying to source an external js library with in mkdocs and also mkdocs-material such as highcharts and chartsjs but it is not rendering the chart. even in case of the plotly, the chart is not rendering when the build is done and deployed unless you put a
<!DOCSYTLE html>
and then it renders.Can you point me to the page or the link where an external js can be called without calling the HTML tag as to deploy it with in the container. I put the js into the /docs/javascripts/plot-charts.js
The configuration file is given below: So here i am trying to put a chart plotting library in a folder named javascript in the docs folder and then using all the sub-functions. However, when i am rendering it, it is not taking the plots in the web render. However, when i put the as the file indicating it is as HTML file rather than a markdown syntax file, the plots are rendered.
Let me know if anything else need to be changed. I also tried passing the url of the same.
i added the link also but it is not working.
Thank you,
Gaurav
thank you,
Gaurav
Beta Was this translation helpful? Give feedback.
All reactions