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

@d3fc/d3fc-chart

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-chart - npm Package Compare versions

Comparing version 5.0.6 to 5.0.7

8

build/d3fc-chart.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@d3fc/d3fc-rebind'), require('d3-selection'), require('d3-scale'), require('@d3fc/d3fc-axis'), require('@d3fc/d3fc-data-join'), require('@d3fc/d3fc-series')) :
typeof define === 'function' && define.amd ? define(['exports', '@d3fc/d3fc-rebind', 'd3-selection', 'd3-scale', '@d3fc/d3fc-axis', '@d3fc/d3fc-data-join', '@d3fc/d3fc-series'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fc = global.fc || {}, global.fc, global.d3, global.d3, global.fc, global.fc, global.fc));
}(this, (function (exports, d3fcRebind, d3Selection, d3Scale, d3fcAxis, d3fcDataJoin, d3fcSeries) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@d3fc/d3fc-rebind'), require('d3-selection'), require('d3-scale'), require('@d3fc/d3fc-axis'), require('@d3fc/d3fc-data-join'), require('@d3fc/d3fc-element'), require('@d3fc/d3fc-series')) :
typeof define === 'function' && define.amd ? define(['exports', '@d3fc/d3fc-rebind', 'd3-selection', 'd3-scale', '@d3fc/d3fc-axis', '@d3fc/d3fc-data-join', '@d3fc/d3fc-element', '@d3fc/d3fc-series'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fc = global.fc || {}, global.fc, global.d3, global.d3, global.fc, global.fc, global.fc, global.fc));
}(this, (function (exports, d3fcRebind, d3Selection, d3Scale, d3fcAxis, d3fcDataJoin, d3fcElement, d3fcSeries) { 'use strict';

@@ -7,0 +7,0 @@ var store = (function () {

@@ -1,1 +0,1 @@

(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("@d3fc/d3fc-rebind"),require("d3-selection"),require("d3-scale"),require("@d3fc/d3fc-axis"),require("@d3fc/d3fc-data-join"),require("@d3fc/d3fc-series")):"function"==typeof define&&define.amd?define(["exports","@d3fc/d3fc-rebind","d3-selection","d3-scale","@d3fc/d3fc-axis","@d3fc/d3fc-data-join","@d3fc/d3fc-series"],b):(a="undefined"==typeof globalThis?a||self:globalThis,b(a.fc=a.fc||{},a.fc,a.d3,a.d3,a.fc,a.fc,a.fc))})(this,function(a,b,c,d,e,f,g){'use strict';var h=function(){for(var a={},b=function(b){for(var c,d=0,e=Object.keys(a);d<e.length;d++)c=e[d],b[c].apply(null,a[c]);return b},c=arguments.length,d=Array(c),e=0;e<c;e++)d[e]=arguments[e];for(var f=function(){var c=h[g];b[c]=function(){for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return e.length?(a[c]=e,b):a[c]}},g=0,h=d;g<h.length;g++)f();return b},i="d3fc-group.cartesian-chart{width:100%;height:100%;overflow:hidden;display:grid;display:-ms-grid;grid-template-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);grid-template-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);}\nd3fc-group.cartesian-chart>.top-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:3;-ms-grid-column:3;grid-row:1;-ms-grid-row:1;}\nd3fc-group.cartesian-chart>.top-axis{height:2em;grid-column:3;-ms-grid-column:3;grid-row:2;-ms-grid-row:2;}\nd3fc-group.cartesian-chart>.left-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:1;-ms-grid-column:1;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.left-axis{width:3em;grid-column:2;-ms-grid-column:2;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.plot-area{overflow:hidden;grid-column:3;-ms-grid-column:3;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.right-axis{width:3em;grid-column:4;-ms-grid-column:4;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.right-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:5;-ms-grid-column:5;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.bottom-axis{height:2em;grid-column:3;-ms-grid-column:3;grid-row:4;-ms-grid-row:4;}\nd3fc-group.cartesian-chart>.bottom-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:3;-ms-grid-column:3;grid-row:5;-ms-grid-row:5;}\nd3fc-group.cartesian-chart>.y-label{display:flex;transform:rotate(-90deg);width:1em;white-space:nowrap;justify-content:center;}",j=document.createElement("style");j.setAttribute("type","text/css"),document.querySelector("head").appendChild(j),j.styleSheet?j.styleSheet.cssText+=i:j.textContent+=i;var k=function(a){return"function"==typeof a?a:function(){return a}},l=function(){var a=m.apply(void 0,arguments),e=a.xScale,g=a.yScale,i=a.xAxis,j=a.yAxis,l=k(""),n=k(""),o=k(""),p=k(null),q=k(null),r=k("right"),s=k("bottom"),t=null,u=null,v=null,w=!1,x=!0,y=h("tickFormat","ticks","tickArguments","tickSize","tickSizeInner","tickSizeOuter","tickValues","tickPadding","tickCenterLabel"),z=function(){},A=h("tickFormat","ticks","tickArguments","tickSize","tickSizeInner","tickSizeOuter","tickValues","tickPadding","tickCenterLabel"),B=function(){},C=function(){},D=f.dataJoin("d3fc-group","cartesian-chart"),E=f.dataJoin("d3fc-canvas","webgl-plot-area"),F=f.dataJoin("d3fc-canvas","canvas-plot-area"),G=f.dataJoin("d3fc-svg","svg-plot-area"),H=f.dataJoin("d3fc-svg","x-axis").key(function(a){return a}),I=f.dataJoin("d3fc-svg","y-axis").key(function(a){return a}),J=f.dataJoin("div","chart-label"),K=f.dataJoin("div","x-label").key(function(a){return a}),L=f.dataJoin("div","y-label").key(function(a){return a}),M=function(a){return function(b){return f.isTransition(a)?b.transition(a):b}},N=function(a){var b=M(a);a.each(function(a,d,f){var h=D(c.select(f[d]),[a]);h.enter().attr("auto-resize",""),J(h,[s(a)]).attr("class",function(a){return"top"===a?"chart-label bottom-label":"chart-label top-label"}).style("margin-bottom",function(a){return"top"===a?0:"1em"}).style("margin-top",function(a){return"top"===a?"1em":0}).text(l(a)),K(h,[s(a)]).attr("class",function(a){return"x-label ".concat(a,"-label")}).text(n(a)),L(h,[r(a)]).attr("class",function(a){return"y-label ".concat(a,"-label")}).text(o(a)),E(h,t?[a]:[]).attr("set-webgl-viewport","").classed("plot-area",!0).attr("use-device-pixel-ratio",x).on("draw",function(a,b){var c=a.detail,d=c.child,f=c.pixelRatio;t.context(w?null:d.getContext("webgl")).pixelRatio(f).xScale(e).yScale(g),t(b)}),h.select(".webgl-plot-area>canvas").on("webglcontextlost",function(a){console.warn("WebGLRenderingContext lost"),a.preventDefault(),w=!0,h.node().requestRedraw()}).on("webglcontextrestored",function(){console.info("WebGLRenderingContext restored"),w=!1,h.node().requestRedraw()}),F(h,u?[a]:[]).classed("plot-area",!0).attr("use-device-pixel-ratio",x).on("draw",function(a,b){var c=a.detail,d=c.child,f=c.pixelRatio,h=d.getContext("2d");h.save(),x&&h.scale(f,f),u.context(h).xScale(e).yScale(g),u(b),h.restore()}),G(h,v?[a]:[]).classed("plot-area",!0).on("draw",function(a,f){var d=a.detail.child;v.xScale(e).yScale(g),b(c.select(d).datum(f)).call(v)}),H(h,[s(a)]).attr("class",function(a){return"x-axis ".concat(a,"-axis")}).style("height",p(a)).on("measure",function(a,b){var d=a.detail,f=d.width,g=d.height,h=d.child;"top"===b&&c.select(h).attr("viewBox","0 ".concat(-g," ").concat(f," ").concat(g)),e.range([0,f])}).on("draw",function(a,f){var d=a.detail.child,g="top"===f?i.top(e):i.bottom(e);g.decorate(z),b(c.select(d).datum(f)).call(y(g))}),I(h,[r(a)]).attr("class",function(a){return"y-axis ".concat(a,"-axis")}).style("width",q(a)).on("measure",function(a,b){var d=a.detail,e=d.width,f=d.height,h=d.child;"left"===b&&c.select(h).attr("viewBox","".concat(-e," 0 ").concat(e," ").concat(f)),g.range([f,0])}).on("draw",function(a,e){var d=a.detail.child,f="left"===e?j.left(g):j.right(g);f.decorate(B),b(c.select(d).datum(e)).call(A(f))}),h.each(function(a,b,c){return c[b].requestRedraw()}),C(h,a,d)})},O=b.exclude(/range\w*/,/tickFormat/);return b.rebindAll(N,e,O,b.prefix("x")),b.rebindAll(N,g,O,b.prefix("y")),b.rebindAll(N,y,b.prefix("x")),b.rebindAll(N,A,b.prefix("y")),N.xOrient=function(){return arguments.length?(s=k(0>=arguments.length?void 0:arguments[0]),N):s},N.yOrient=function(){return arguments.length?(r=k(0>=arguments.length?void 0:arguments[0]),N):r},N.xDecorate=function(){return arguments.length?(z=0>=arguments.length?void 0:arguments[0],N):z},N.yDecorate=function(){return arguments.length?(B=0>=arguments.length?void 0:arguments[0],N):B},N.chartLabel=function(){return arguments.length?(l=k(0>=arguments.length?void 0:arguments[0]),N):l},N.xLabel=function(){return arguments.length?(n=k(0>=arguments.length?void 0:arguments[0]),N):n},N.yLabel=function(){return arguments.length?(o=k(0>=arguments.length?void 0:arguments[0]),N):o},N.xAxisHeight=function(){return arguments.length?(p=k(0>=arguments.length?void 0:arguments[0]),N):p},N.yAxisWidth=function(){return arguments.length?(q=k(0>=arguments.length?void 0:arguments[0]),N):q},N.webglPlotArea=function(){return arguments.length?(t=0>=arguments.length?void 0:arguments[0],N):t},N.canvasPlotArea=function(){return arguments.length?(u=0>=arguments.length?void 0:arguments[0],N):u},N.svgPlotArea=function(){return arguments.length?(v=0>=arguments.length?void 0:arguments[0],N):v},N.decorate=function(){return arguments.length?(C=0>=arguments.length?void 0:arguments[0],N):C},N.useDevicePixelRatio=function(){return arguments.length?(x=0>=arguments.length?void 0:arguments[0],N):x},N},m=function(){for(var a={xScale:d.scaleIdentity(),yScale:d.scaleIdentity(),xAxis:{bottom:e.axisBottom,top:e.axisTop},yAxis:{right:e.axisRight,left:e.axisLeft}},b=arguments.length,c=Array(b),f=0;f<b;f++)c[f]=arguments[f];return 1!==c.length||c[0].domain||c[0].range?Object.assign(a,{xScale:c[0]||a.xScale,yScale:c[1]||a.yScale}):Object.assign(a,c[0])},n=function(a){return"function"==typeof a?a:function(){return a}},o=function(a,c){return function(){var d=n(""),e=c,f=function(){},g=l.apply(void 0,arguments),h=function(b){a(g,e),g.decorate(function(a,b,c){a.enter().select(".x-label").style("height","1em").style("line-height","1em");var e=g.yOrient()(b);a.enter().append("div").attr("class","y-label-container").style("grid-column","left"===e?1:5).style("-ms-grid-column","left"===e?1:5).style("grid-row",3).style("-ms-grid-row",3).style("width","1em").style("display","flex").style("align-items","center").style("justify-content","center").style("white-space","nowrap").append("div").attr("class","y-label").style("transform","rotate(-90deg)"),a.select(".y-label-container>.y-label").text(d),f(a,b,c)}),b.call(g)};return b.rebindAll(h,g,b.include(/^x/,/^y/,"chartLabel")),h.yLabel=function(){return arguments.length?(d=n(0>=arguments.length?void 0:arguments[0]),h):d},h.plotArea=function(){return arguments.length?(e=0>=arguments.length?void 0:arguments[0],h):e},h.decorate=function(){return arguments.length?(f=0>=arguments.length?void 0:arguments[0],h):f},h}},p=o(function(a,b){return a.svgPlotArea(b)},g.seriesSvgLine),q=o(function(a,b){return a.canvasPlotArea(b)},g.seriesCanvasLine);a.chartCanvasCartesian=q,a.chartCartesian=l,a.chartSvgCartesian=p,Object.defineProperty(a,"__esModule",{value:!0})});
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("@d3fc/d3fc-rebind"),require("d3-selection"),require("d3-scale"),require("@d3fc/d3fc-axis"),require("@d3fc/d3fc-data-join"),require("@d3fc/d3fc-element"),require("@d3fc/d3fc-series")):"function"==typeof define&&define.amd?define(["exports","@d3fc/d3fc-rebind","d3-selection","d3-scale","@d3fc/d3fc-axis","@d3fc/d3fc-data-join","@d3fc/d3fc-element","@d3fc/d3fc-series"],b):(a="undefined"==typeof globalThis?a||self:globalThis,b(a.fc=a.fc||{},a.fc,a.d3,a.d3,a.fc,a.fc,a.fc,a.fc))})(this,function(a,b,c,d,e,f,g,h){'use strict';var i=function(){for(var a={},b=function(b){for(var c,d=0,e=Object.keys(a);d<e.length;d++)c=e[d],b[c].apply(null,a[c]);return b},c=arguments.length,d=Array(c),e=0;e<c;e++)d[e]=arguments[e];for(var f=function(){var c=h[g];b[c]=function(){for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return e.length?(a[c]=e,b):a[c]}},g=0,h=d;g<h.length;g++)f();return b},j="d3fc-group.cartesian-chart{width:100%;height:100%;overflow:hidden;display:grid;display:-ms-grid;grid-template-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);grid-template-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);}\nd3fc-group.cartesian-chart>.top-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:3;-ms-grid-column:3;grid-row:1;-ms-grid-row:1;}\nd3fc-group.cartesian-chart>.top-axis{height:2em;grid-column:3;-ms-grid-column:3;grid-row:2;-ms-grid-row:2;}\nd3fc-group.cartesian-chart>.left-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:1;-ms-grid-column:1;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.left-axis{width:3em;grid-column:2;-ms-grid-column:2;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.plot-area{overflow:hidden;grid-column:3;-ms-grid-column:3;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.right-axis{width:3em;grid-column:4;-ms-grid-column:4;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.right-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:5;-ms-grid-column:5;grid-row:3;-ms-grid-row:3;}\nd3fc-group.cartesian-chart>.bottom-axis{height:2em;grid-column:3;-ms-grid-column:3;grid-row:4;-ms-grid-row:4;}\nd3fc-group.cartesian-chart>.bottom-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:3;-ms-grid-column:3;grid-row:5;-ms-grid-row:5;}\nd3fc-group.cartesian-chart>.y-label{display:flex;transform:rotate(-90deg);width:1em;white-space:nowrap;justify-content:center;}",k=document.createElement("style");k.setAttribute("type","text/css"),document.querySelector("head").appendChild(k),k.styleSheet?k.styleSheet.cssText+=j:k.textContent+=j;var l=function(a){return"function"==typeof a?a:function(){return a}},m=function(){var a=n.apply(void 0,arguments),e=a.xScale,g=a.yScale,h=a.xAxis,j=a.yAxis,k=l(""),m=l(""),o=l(""),p=l(null),q=l(null),r=l("right"),s=l("bottom"),t=null,u=null,v=null,w=!1,x=!0,y=i("tickFormat","ticks","tickArguments","tickSize","tickSizeInner","tickSizeOuter","tickValues","tickPadding","tickCenterLabel"),z=function(){},A=i("tickFormat","ticks","tickArguments","tickSize","tickSizeInner","tickSizeOuter","tickValues","tickPadding","tickCenterLabel"),B=function(){},C=function(){},D=f.dataJoin("d3fc-group","cartesian-chart"),E=f.dataJoin("d3fc-canvas","webgl-plot-area"),F=f.dataJoin("d3fc-canvas","canvas-plot-area"),G=f.dataJoin("d3fc-svg","svg-plot-area"),H=f.dataJoin("d3fc-svg","x-axis").key(function(a){return a}),I=f.dataJoin("d3fc-svg","y-axis").key(function(a){return a}),J=f.dataJoin("div","chart-label"),K=f.dataJoin("div","x-label").key(function(a){return a}),L=f.dataJoin("div","y-label").key(function(a){return a}),M=function(a){return function(b){return f.isTransition(a)?b.transition(a):b}},N=function(a){var b=M(a);a.each(function(a,d,f){var i=D(c.select(f[d]),[a]);i.enter().attr("auto-resize",""),J(i,[s(a)]).attr("class",function(a){return"top"===a?"chart-label bottom-label":"chart-label top-label"}).style("margin-bottom",function(a){return"top"===a?0:"1em"}).style("margin-top",function(a){return"top"===a?"1em":0}).text(k(a)),K(i,[s(a)]).attr("class",function(a){return"x-label ".concat(a,"-label")}).text(m(a)),L(i,[r(a)]).attr("class",function(a){return"y-label ".concat(a,"-label")}).text(o(a)),E(i,t?[a]:[]).attr("set-webgl-viewport","").classed("plot-area",!0).attr("use-device-pixel-ratio",x).on("draw",function(a,b){var c=a.detail,d=c.child,f=c.pixelRatio;t.context(w?null:d.getContext("webgl")).pixelRatio(f).xScale(e).yScale(g),t(b)}),i.select(".webgl-plot-area>canvas").on("webglcontextlost",function(a){console.warn("WebGLRenderingContext lost"),a.preventDefault(),w=!0,i.node().requestRedraw()}).on("webglcontextrestored",function(){console.info("WebGLRenderingContext restored"),w=!1,i.node().requestRedraw()}),F(i,u?[a]:[]).classed("plot-area",!0).attr("use-device-pixel-ratio",x).on("draw",function(a,b){var c=a.detail,d=c.child,f=c.pixelRatio,h=d.getContext("2d");h.save(),x&&h.scale(f,f),u.context(h).xScale(e).yScale(g),u(b),h.restore()}),G(i,v?[a]:[]).classed("plot-area",!0).on("draw",function(a,f){var d=a.detail.child;v.xScale(e).yScale(g),b(c.select(d).datum(f)).call(v)}),H(i,[s(a)]).attr("class",function(a){return"x-axis ".concat(a,"-axis")}).style("height",p(a)).on("measure",function(a,b){var d=a.detail,f=d.width,g=d.height,h=d.child;"top"===b&&c.select(h).attr("viewBox","0 ".concat(-g," ").concat(f," ").concat(g)),e.range([0,f])}).on("draw",function(a,f){var d=a.detail.child,g="top"===f?h.top(e):h.bottom(e);g.decorate(z),b(c.select(d).datum(f)).call(y(g))}),I(i,[r(a)]).attr("class",function(a){return"y-axis ".concat(a,"-axis")}).style("width",q(a)).on("measure",function(a,b){var d=a.detail,e=d.width,f=d.height,h=d.child;"left"===b&&c.select(h).attr("viewBox","".concat(-e," 0 ").concat(e," ").concat(f)),g.range([f,0])}).on("draw",function(a,e){var d=a.detail.child,f="left"===e?j.left(g):j.right(g);f.decorate(B),b(c.select(d).datum(e)).call(A(f))}),i.each(function(a,b,c){return c[b].requestRedraw()}),C(i,a,d)})},O=b.exclude(/range\w*/,/tickFormat/);return b.rebindAll(N,e,O,b.prefix("x")),b.rebindAll(N,g,O,b.prefix("y")),b.rebindAll(N,y,b.prefix("x")),b.rebindAll(N,A,b.prefix("y")),N.xOrient=function(){return arguments.length?(s=l(0>=arguments.length?void 0:arguments[0]),N):s},N.yOrient=function(){return arguments.length?(r=l(0>=arguments.length?void 0:arguments[0]),N):r},N.xDecorate=function(){return arguments.length?(z=0>=arguments.length?void 0:arguments[0],N):z},N.yDecorate=function(){return arguments.length?(B=0>=arguments.length?void 0:arguments[0],N):B},N.chartLabel=function(){return arguments.length?(k=l(0>=arguments.length?void 0:arguments[0]),N):k},N.xLabel=function(){return arguments.length?(m=l(0>=arguments.length?void 0:arguments[0]),N):m},N.yLabel=function(){return arguments.length?(o=l(0>=arguments.length?void 0:arguments[0]),N):o},N.xAxisHeight=function(){return arguments.length?(p=l(0>=arguments.length?void 0:arguments[0]),N):p},N.yAxisWidth=function(){return arguments.length?(q=l(0>=arguments.length?void 0:arguments[0]),N):q},N.webglPlotArea=function(){return arguments.length?(t=0>=arguments.length?void 0:arguments[0],N):t},N.canvasPlotArea=function(){return arguments.length?(u=0>=arguments.length?void 0:arguments[0],N):u},N.svgPlotArea=function(){return arguments.length?(v=0>=arguments.length?void 0:arguments[0],N):v},N.decorate=function(){return arguments.length?(C=0>=arguments.length?void 0:arguments[0],N):C},N.useDevicePixelRatio=function(){return arguments.length?(x=0>=arguments.length?void 0:arguments[0],N):x},N},n=function(){for(var a={xScale:d.scaleIdentity(),yScale:d.scaleIdentity(),xAxis:{bottom:e.axisBottom,top:e.axisTop},yAxis:{right:e.axisRight,left:e.axisLeft}},b=arguments.length,c=Array(b),f=0;f<b;f++)c[f]=arguments[f];return 1!==c.length||c[0].domain||c[0].range?Object.assign(a,{xScale:c[0]||a.xScale,yScale:c[1]||a.yScale}):Object.assign(a,c[0])},o=function(a){return"function"==typeof a?a:function(){return a}},p=function(a,c){return function(){var d=o(""),e=c,f=function(){},g=m.apply(void 0,arguments),h=function(b){a(g,e),g.decorate(function(a,b,c){a.enter().select(".x-label").style("height","1em").style("line-height","1em");var e=g.yOrient()(b);a.enter().append("div").attr("class","y-label-container").style("grid-column","left"===e?1:5).style("-ms-grid-column","left"===e?1:5).style("grid-row",3).style("-ms-grid-row",3).style("width","1em").style("display","flex").style("align-items","center").style("justify-content","center").style("white-space","nowrap").append("div").attr("class","y-label").style("transform","rotate(-90deg)"),a.select(".y-label-container>.y-label").text(d),f(a,b,c)}),b.call(g)};return b.rebindAll(h,g,b.include(/^x/,/^y/,"chartLabel")),h.yLabel=function(){return arguments.length?(d=o(0>=arguments.length?void 0:arguments[0]),h):d},h.plotArea=function(){return arguments.length?(e=0>=arguments.length?void 0:arguments[0],h):e},h.decorate=function(){return arguments.length?(f=0>=arguments.length?void 0:arguments[0],h):f},h}},q=p(function(a,b){return a.svgPlotArea(b)},h.seriesSvgLine),r=p(function(a,b){return a.canvasPlotArea(b)},h.seriesCanvasLine);a.chartCanvasCartesian=r,a.chartCartesian=m,a.chartSvgCartesian=q,Object.defineProperty(a,"__esModule",{value:!0})});

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

## [5.0.7](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-chart@5.0.6...@d3fc/d3fc-chart@5.0.7) (2020-11-25)
### Bug Fixes
* [#1654](https://github.com/d3fc/d3fc/issues/1654): register custom elements used in charts ([5b0405b](https://github.com/d3fc/d3fc/commit/5b0405b))
## [5.0.6](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-chart@5.0.5...@d3fc/d3fc-chart@5.0.6) (2020-09-23)

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

{
"name": "@d3fc/d3fc-chart",
"version": "5.0.6",
"version": "5.0.7",
"description": "A simple Cartesian chart component that renders to canvas or SVG.",

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

},
"gitHead": "a7f1db4d1fd44f696c7ead067284851953c18e6c"
"gitHead": "b294f0a6f326b9eb001498e6760c0f0c8772620f"
}

@@ -6,2 +6,3 @@ import { select } from 'd3-selection';

import { rebindAll, exclude, prefix } from '@d3fc/d3fc-rebind';
import '@d3fc/d3fc-element';
import store from './store';

@@ -8,0 +9,0 @@ import './css';

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