Function Plot2D 图表库
Function Plot 是一个基于 D3.js 开发的 2D 图表库,用来绘制各种函数图。
示例代码:
functionPlot({
  title: 'y = x * x',
  target: '#linear-with-options',
  width: 580,
  height: 400,
  disableZoom: true,
  xLabel: 'x - axis',
  yLabel: 'y - axis',
  data: [{
    fn: function (x) {
      return x * x;
    }
  }]
}); 
效果:
安装:
评论
