plotly.js 是开源的 JavaScript 图表库,它基于 D3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来20种图表类型,包括 3D 图表,统计图表,和 SVG 地图。

实例代码:

Plotly.d3.csv('HTTPS://raw.Githubusercontent.com/plotly/Datasets/master/gapminderDataFiveYear.csv', Function(err, rows){      var YEAR = 2007;      var continents = ['Asia', 'Europe', 'Africa', 'OceaNia', 'Americas'];      var POP_TO_PX_SIZE = 2e5;      function unpack(rows, key) {          return rows.map(function(row) { return row[key]; });
      }      var data = continents.map(function(continent) {          var rowsFiltered = rows.filter(function(row) {              return (row.continent === continent) && (+row.year === YEAR);
          });          return {
              mode: 'markers',
              name: continent,
              x: unpack(rowsFiltered, 'lifeExp'),
              y: unpack(rowsFiltered, 'GDpPercap'),
              text: unpack(rowsFiltered, 'country'),
              marker: {
                  sizemode: 'area',
                  size: unpack(rowsFiltered, 'pop'),
                  sizeref: POP_TO_PX_SIZE
              }
          };
      });      var layout = {
          xaxis: {title: 'Life Expectancy'},
          yaxis: {title: 'GDP per Capita', type: 'log'},
          margin: {t: 20},
          hovermode: 'closest'
      };
      Plotly.plot('my-graph', data, layout, {showLink: false});
  });
数据可视化平台 Plotly 开源强大的 JS 图表库
数据可视化平台 Plotly 开源旗下强大的 JavaScript 图表库,支持三种不同类型的图表,包括地图,箱形图和密度图,以及更常见的产品如,条状和线形图。源代码已发布在 GitHub。(已收录开源中国软件库 plotly.js)最新版本的 Plotly.js 可以免费、无限制地用于任何项目。此前 Plotly 在 R, Python 和 MATLAB 的客户端一直是

发布于 2015-11-20 23:01:47 | 884 次阅读

Plotly.js 1.33.0 发布,JavaScript 图表库
Plotly.js 是开源的 JavaScript 图表库,它基于 d3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来20种图表类型,包括 3D 图表,统计图表,和 SVG 地图。Plotly.js 1.33.0 部分更新内容如下:使用 regl 完全重写 scattergl trace 类型完全重写极坐标图渲染器新增使用散点图跟踪布局图像

发布于 2018-01-22 00:17:02 | 132 次阅读

Plotly.js 1.21.0 发布,JavaScript 图表库
Plotly.js 1.21.0 发布了,Plotly.js 是开源的 JavaScript 图表库,它基于 d3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来20种图表类型,包括 3D 图表,统计图表,和 SVG 地图。更新内容:新增通过文本和文本位置的标签条为日期输入和显示添加对16个非 gregorian 日历的支持添加对 ISO-86

发布于 2016-12-15 00:29:41 | 102 次阅读

Plotly.js v1.5.1 发布,JavaScript 图表
Plotly.js v1.5.1 发布,更新如下:修复Scattergeo and choropleth now correctly fire hover and click events [#215]Heatmap and contour traces are redrawn in the correct order [#194]Early returns in Plotly.plot now correctly return Promise rejections [#226]Soon to be deprecated SVGElement.offsetParent ca

发布于 2016-02-02 00:28:10 | 166 次阅读

Plotly.js v1.5.0 发布,JavaScript 图表
Plotly.js v1.5.0 发布,更新内容如下:增加:Modularize the library (first iteration). Trace types can be required in one-by-one to make custom plotly.js bundles of lesser size. [#180, #187, #193, #202]改进:Remove json assets from the js source files (to better support Webpack bundling) [#183]Update

发布于 2016-01-26 00:17:10 | 147 次阅读

Plotly.js v1.4.1 发布,JavaScript 图表
Plotly.js v1.4.1 发布,更新如下:修复Click events work properly after being broken in 1.4.0 [#174]下载页面:1.4.1Plotly.js 是开源的 JavaScript 图表库,它基于 d3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来20种图表类型,包括 3D 图表,统计图表,和 SVG 地图。

发布于 2016-01-13 00:18:58 | 178 次阅读

Plotly.js v1.3.1 发布,JavaScript 图表
Plotly.js v1.3.1 发布,更新如下:Fix Plotly.addTraces for gl3d and gl2d trace types [#140]下载地址:1.3.1Plotly.js 是开源的 JavaScript 图表库,它基于 d3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来20种图表类型,包括 3D 图表,统计图表,和 SVG 地图。

发布于 2016-01-06 00:56:33 | 135 次阅读

Plotly.js v1.2.1 发布,JavaScript 图表
Plotly.js v1.2.1 发布,更新如下:变更:Improve XSS check in anchor href [#100]修复Fix Firefox 42 to-image failures [#104]Fix error bar with type 'sqrt' logic making them visible without specifying the 'value' field [#91]Fix cartesian zoom/drag cover attributes for Firefox 31 [#92]下

发布于 2015-12-16 06:56:56 | 170 次阅读

Plotly.js v1.2.0 发布,JavaScript 图表
Plotly.js v1.2.0 发布,更新如下:增加All Plotly.____ methods now return a promise, and pass the graph-div as an argument [#77]package.json now has webpack field so plotly.js can be used by webpack users [#68]Add support for rgba colours in pie-charts [#63]变更Optimized by calling window.getComputedS

发布于 2015-12-09 00:30:10 | 126 次阅读

Plotly.js v1.1.1 发布,JavaScript 图表库
Plotly.js v1.1.1 发布,更新如下:Fix displayModeBar plot config logic [#57]Fix length-1 bins count as ascending in Lib.findBin [#47]Fix jasmine test runner on windows [#46]下载页面:v1.1.1Plotly.js 是开源的 JavaScript 图表库,它基于 d3.js 和 stack.gl 。是一个高层次的、描述性的图表库。 plotly.js 带来

发布于 2015-12-02 00:59:30 | 213 次阅读

Plotly.js v1.1.0 发布,JavaScript 图表库
Plotly.js v1.1.0 发布,更新如下:增加Add three plot config options: modeBarButtonsToRemove,modeBarButtonsToAdd and modeBarButtons which combine to add the ability to remove specific mode bar buttons add custom mode bar buttons and fully customize the mode bar [#23].修复Fix installation from npm3 [#1

发布于 2015-11-26 00:28:15 | 233 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务