Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rreusser/plotly-basis-transform
[WIP] Generate a linear- or log-space basis using plotly.js transforms
https://github.com/rreusser/plotly-basis-transform
Last synced: 7 days ago
JSON representation
[WIP] Generate a linear- or log-space basis using plotly.js transforms
- Host: GitHub
- URL: https://github.com/rreusser/plotly-basis-transform
- Owner: rreusser
- Created: 2016-07-21T01:09:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T06:24:18.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T12:15:59.493Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# plotly-basis-transform
> Generate a linear- or log-space basis using plotly.js transforms
[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
## Introduction
Highly experimental plotly.js transform to generate a linspace (or, eventually, logspace). See related [ploty-expression-transform](https://rreusser.github.io/plotly-expression-transform) example.
## Example
To overwrite a variable with a new array:
```javascript
var Plotly = require('plotly.js');Plotly.register([require('plotly-basis-transform')]);
Plotly.plot('graph', [{
x: [...],
y: [...],
transforms: {
type: 'basis',
variable: 'x',
range: [0, 5],
npoints: 101
}
}]);
```## To Do
Better conflict resolution when the trace size doesn't match the requested number of points.
## License
© 2016 Ricky Reusser. MIT License.