Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3fc-flexi-chart

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3fc-flexi-chart - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

examples/opengl.html

5

examples/index.js

@@ -33,5 +33,6 @@ // const flexi = fcFlexi.flexiChart();

var gridlinesSvg = fc.annotationSvgGridline();
var lineSvg = fc.seriesSvgLine();
var lineSvg = fc.seriesSvgLine().curve(d3.curveCatmullRom);
var areaSvg = fc.seriesSvgArea()
.mainValue(d => d.z);
.mainValue(d => d.z)
.curve(d3.curveCatmullRom);

@@ -38,0 +39,0 @@ var multiSvg = fc.seriesSvgMulti()

2

package.json
{
"name": "d3fc-flexi-chart",
"version": "0.0.3",
"version": "0.0.4",
"description": "A flexible alternative to the d3fc cartesian chart",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -5,2 +5,3 @@ import { rebindAll } from '@d3fc/d3fc-rebind';

export default (...args) => {
const contextType = '2d';
const base = layer(...args);

@@ -14,5 +15,13 @@

base.plotArea().context(canvas.getContext('2d'))(data);
base.plotArea().context(canvas.getContext(contextType))(data);
};
canvasLayer.contextType = (...args) => {
if (!args.length) {
return contextType;
}
contextType = args[0];
return canvasLayer;
};
rebindAll(canvasLayer, base);

@@ -19,0 +28,0 @@ canvasLayer.element = 'd3fc-canvas';

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