Socket
Socket
Sign inDemoInstall

@d3fc/d3fc-series

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-series - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [4.3.0](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-series@4.2.0...@d3fc/d3fc-series@4.3.0) (2020-01-16)
### Features
* add projectedAttributeBuilder ([583ded7](https://github.com/d3fc/d3fc/commit/583ded7))
# [4.2.0](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-series@4.1.1...@d3fc/d3fc-series@4.2.0) (2020-01-03)

@@ -8,0 +19,0 @@

@@ -39,1 +39,15 @@ var width = 500;

canvasBar(data);
var webgl = d3.select('#bar-webgl').node();
webgl.width = width;
webgl.height = height;
var gl = webgl.getContext('webgl');
var webglBar = fc.seriesWebglBar()
.xScale(xScale)
.yScale(yScale)
.context(gl)
.crossValue(function(_, i) { return i; })
.mainValue(function(d) { return d; })
.bandwidth(0.5);
webglBar(data);

6

package.json
{
"name": "@d3fc/d3fc-series",
"version": "4.2.0",
"version": "4.3.0",
"description": "A collection of components for rendering data series to SVG and canvas, including line, bar, OHLC, candlestick and more",

@@ -35,3 +35,3 @@ "license": "MIT",

"@d3fc/d3fc-shape": "^5.0.19",
"@d3fc/d3fc-webgl": "^1.1.0",
"@d3fc/d3fc-webgl": "^1.2.0",
"d3-array": "^1.0.0",

@@ -45,3 +45,3 @@ "d3-scale": "^1.0.1",

},
"gitHead": "e031afe3755ffe2fc98b9c17671ca2c1a8e29d05"
"gitHead": "f7d137b8e88b9534b7c54046a760f50ee2febdeb"
}

@@ -18,3 +18,3 @@ import xyBase from '../xyBase';

const y0Values = new Float32Array(filteredData.length);
const y1Values = new Float32Array(filteredData.length);
const yValues = new Float32Array(filteredData.length);
const widths = new Float32Array(filteredData.length);

@@ -24,3 +24,3 @@ filteredData.forEach((d, i) => {

y0Values[i] = yScale.scale(base.baseValue()(d, i));
y1Values[i] = yScale.scale(base.mainValue()(d, i));
yValues[i] = yScale.scale(base.mainValue()(d, i));
widths[i] = yScale.scale(base.bandwidth()(d, i));

@@ -31,3 +31,3 @@ });

.y0Values(y0Values)
.y1Values(y1Values)
.yValues(yValues)
.widths(widths)

@@ -34,0 +34,0 @@ .xScale(xScale.glScale)

@@ -29,4 +29,4 @@ import errorBarBase from '../errorBarBase';

draw.xValues(xValues)
.high(high)
.low(low)
.highValues(high)
.lowValues(low)
.bandwidth(bandwidth)

@@ -33,0 +33,0 @@ .xScale(xScale.glScale)

@@ -31,6 +31,6 @@ import ohlcBase from '../ohlcBase';

pathGenerator.xValues(xValues)
.open(open)
.high(high)
.low(low)
.close(close)
.openValues(open)
.highValues(high)
.lowValues(low)
.closeValues(close)
.bandwidth(bandwidths)

@@ -37,0 +37,0 @@ .xScale(xScale.glScale)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc