Hướng dẫn dùng plotly JavaScript
NPM You can install Plotly.js from NPM via plotly.js CDNYou can also use the ultrafast plotly.js CDN link. This CDN is graciously provided by the incredible team at Fastly.
DownloadDownload the minified plotly.js source code and dependencies. Include the downloaded scripts before the end of the tag in your HTML document:
Download plotly.js Start plotting!In your HTML document, create an empty DIV to draw the graph in:
Now you can make interactive plotly.js charts using
Now you can pass
Plotly.newPlot() either the ID of the DIV ("tester") or the DIV DOM element ( Webpack user?For plotly.js to build with Webpack you will need to install + and add it to your A repo that demonstrates how to build plotly.js with Webpack
can be found here. In short add
Hello World Example |