在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:plotly/plotly.js开源软件地址:https://github.com/plotly/plotly.js开源编程语言:JavaScript 99.6%开源软件介绍:Plotly.js is a standalone Javascript data visualization library, and it also powers the Python and R modules named Plotly.js can be used to produce dozens of chart types and visualizations, including statistical charts, 3D graphs, scientific charts, SVG and tile maps, financial charts and more. Contact us for Plotly.js consulting, dashboard development, application integration, and feature additions. Table of contents
Load as a node moduleInstall a ready-to-use distributed bundle npm i --save plotly.js-dist-min and use import or require in node.js // ES6 module
import Plotly from 'plotly.js-dist-min'
// CommonJS
var Plotly = require('plotly.js-dist-min') You may also consider using Load via script tagThe script HTML element
<head>
<script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script>
</head>
<body>
<div id="gd"></div>
<script>
Plotly.newPlot("gd", /* JSON object */ {
"data": [{ "y": [1, 2, 3] }],
"layout": { "width": 600, "height": 400}
})
</script>
</body> Alternatively you may consider using native ES6 import in the script tag. <script type="module">
import "https://cdn.plot.ly/plotly-2.12.1.min.js"
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
</script> Fastly supports Plotly.js with free CDN service. Read more at https://www.fastly.com/open-source. Un-minified versions are also available on CDNWhile non-minified source files may contain characters outside UTF-8, it is recommended that you specify the <script src="https://cdn.plot.ly/plotly-2.12.1.js" charset="utf-8"></script>
MathJaxYou could load either version two or version three of MathJax files, for example: <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-svg.js"></script>
BundlesThere are two kinds of plotly.js bundles:
Alternative ways to load and build plotly.jsIf your library needs to bundle or directly load plotly.js/lib/index.js or parts of its modules similar to index-basic in some other way than via an official or a custom bundle, or in case you want to tweak the default build configurations of DocumentationOfficial plotly.js documentation is hosted at https://plotly.com/javascript. These pages are generated by the Plotly graphing-library-docs repo built with Jekyll and publicly hosted on GitHub Pages. For more info about contributing to Plotly documentation, please read through contributing guidelines. Bugs and feature requestsHave a bug or a feature request? Please open a Github issue keeping in mind the issue guidelines. You may also want to read about how changes get made to Plotly.js ContributingPlease read through our contributing guidelines. Included are directions for opening issues, using plotly.js in your project and notes on development. Notable contributorsPlotly.js is at the core of a large and dynamic ecosystem with many contributors who file issues, reproduce bugs, suggest improvements, write code in this repo (and other upstream or downstream ones) and help users in the Plotly community forum. The following people deserve special recognition for their outsized contributions to this ecosystem:
Copyright and licenseCode and documentation copyright 2021 Plotly, Inc. Code released under the MIT license. VersioningThis project is maintained under the Semantic Versioning guidelines. See the Releases section of our GitHub project for changelogs for each release version of plotly.js. Community
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论