New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dchart-core

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dchart-core - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

bar/barCustom.js

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

function BarMultiCustom(t,e){var a={xaxis:{type:"category",orient:"bottom"},yaxis:{min:0}};_.deepMerge(a,e),DataV.call(this,t,a)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarMultiCustom=DataV.extend(BarMultiCustom,{data:function(t){if(!t)return this._data;var e=this.options,a=e.yaxis.key;t.forEach(function(t){_.isArray(t[a])||(t[a]=[t[a]])}),this._data=t},renderSeries:function(){this.svg.classed("bar-chart-g",!0);var t,e,a=this.options,i=this.data(),s=this,r=a.xaxis.key,n=a.yaxis.key;t=this.getComs("axis","xaxis"),e=this.getComs("axis","yaxis");var o=t.getX(),u=e.getX(),c=_.maxBy(i,function(t){return t[n].length})[n].length,l=t.calGroupStep(a.groupLabel||c),h=function(t,i,c){var h=d3.select(this);a.withAnimated&&(a.isFirst&&h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}}),h.transition().duration(a.animatedTiming).ease(a.animatedEasing)),t[n][i]!==e.getMin()&&void 0!==t[n][i]&&h.attr({d:function(t){var h=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(h=a.customPos.call(s,h,i,c),_.pos2Path(h)):"function"==typeof a.customPath?a.customPath.call(s,h,c):_.pos2Path(h)}})||h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}})},d=this.series.selectAll(".series-group").data(this._data);this.enterSeries=d.enter().append("g").attr("class","series-group");for(var g=0;c>g;g++)d.each(function(t,e){var a=d3.select(this).select(".serie"+(g+1))[0][0];a&&h.call(d3.select(this).select(".serie"+(g+1))[0][0],t,e,g)}),this.enterSeries.append("path").attr("class","serie serie"+(g+1)).each(function(t,e){h.call(this,t,e,g)});d.selectAll(".serie.serie"+c+" + .serie").remove(),this.outerSeries=d.exit().remove()},updateBeforeRender:function(){this.beforeRender()},updateSeries:function(){BarMultiCustom.prototype.renderSeries.call(this)}}),module.exports=BarMultiCustom;
function BarMultiCustom(t,e){var a={xaxis:{type:"category",orient:"bottom"},yaxis:{min:0}};_.deepMerge(a,e),DataV.call(this,t,a)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarMultiCustom=DataV.extend(BarMultiCustom,{data:function(t){if(!t)return this._data;var e=this.options,a=e.yaxis.key;t.forEach(function(t){_.isArray(t[a])||(t[a]=[t[a]])}),this._data=t},renderSeries:function(){this.svg.classed("bar-chart-g",!0);var t,e,a=this.options,i=this.data(),s=this,r=a.xaxis.key,n=a.yaxis.key;t=this.getComs("axis","xaxis"),e=this.getComs("axis","yaxis");var o=t.getX(),u=e.getX(),c=_.maxBy(i,function(t){return t[n].length})[n].length,l=t.calGroupStep(a.groupLabel||c),h=function(t,i,c){var h=d3.select(this);a.withAnimated&&(a.isFirst&&h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}}),h.transition().duration(a.animatedTiming).ease(a.animatedEasing)),t[n][c]!==e.getMin()&&void 0!==t[n][c]&&h.attr({d:function(t){var h=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(h=a.customPos.call(s,h,i,c),_.pos2Path(h)):"function"==typeof a.customPath?a.customPath.call(s,h,c):_.pos2Path(h)}})||h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}})},d=this.series.selectAll(".series-group").data(this._data);this.enterSeries=d.enter().append("g").attr("class","series-group");for(var g=0;c>g;g++)d.each(function(t,e){var a=d3.select(this).select(".serie"+(g+1))[0][0];a&&h.call(d3.select(this).select(".serie"+(g+1))[0][0],t,e,g)}),this.enterSeries.append("path").attr("class","serie serie"+(g+1)).each(function(t,e){h.call(this,t,e,g)});d.selectAll(".serie.serie"+c+" + .serie").remove(),this.outerSeries=d.exit().remove()},updateBeforeRender:function(){this.beforeRender()},updateSeries:function(){BarMultiCustom.prototype.renderSeries.call(this)}}),module.exports=BarMultiCustom;

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

function BarMultiCustom(t,e){var a={xaxis:{type:"category",orient:"bottom"},yaxis:{}};_.deepMerge(a,e),DataV.call(this,t,a)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarMultiCustom=DataV.extend(BarMultiCustom,{data:function(t){if(!t)return this._data;var e=this.options,a=e.yaxis.key;t.forEach(function(t){_.isArray(t[a])||(t[a]=[t[a]])}),this._data=t},renderSeries:function(){this.svg.classed("bar-chart-g",!0);var t,e,a=this.options,i=this.data(),s=this,r=a.xaxis.key,n=a.yaxis.key;t=this.getComs("axis","xaxis"),e=this.getComs("axis","yaxis");var o=t.getX(),u=e.getX(),c=_.maxBy(i,function(t){return t[n].length})[n].length,l=t.calGroupStep(a.groupLabel||i[0][n].length),h=function(t,i,c){var h=d3.select(this);a.withAnimated&&(a.isFirst&&h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}}),h.transition().duration(a.animatedTiming).ease(a.animatedEasing)),t[n][i]!==e.getMin()&&void 0!==t[n][i]&&h.attr({d:function(t){var h=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(h=a.customPos.call(s,h,i,c),_.pos2Path(h)):"function"==typeof a.customPath?a.customPath.call(s,h,c):_.pos2Path(h)}})||h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}})},d=this.series.selectAll(".series-group").data(this._data);this.enterSeries=d.enter().append("g").attr("class","series-group");for(var g=0;c>g;g++)d.each(function(t,e){var a=d3.select(this).select(".serie"+(g+1))[0][0];a&&h.call(d3.select(this).select(".serie"+(g+1))[0][0],t,e,g)}),this.enterSeries.append("path").attr("class","serie serie"+(g+1)).each(function(t,e){h.call(this,t,e,g)});d.selectAll(".serie.serie"+c+" + .serie").remove(),this.outerSeries=d.exit().remove()},updateBeforeRender:function(){this.beforeRender()},updateSeries:function(){BarMultiCustom.prototype.renderSeries.call(this)}}),module.exports=BarMultiCustom;
function BarMultiCustom(t,e){var a={xaxis:{type:"category",orient:"bottom"},yaxis:{}};_.deepMerge(a,e),DataV.call(this,t,a)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarMultiCustom=DataV.extend(BarMultiCustom,{data:function(t){if(!t)return this._data;var e=this.options,a=e.yaxis.key;t.forEach(function(t){_.isArray(t[a])||(t[a]=[t[a]])}),this._data=t},renderSeries:function(){this.svg.classed("bar-chart-g",!0);var t,e,a=this.options,i=this.data(),s=this,r=a.xaxis.key,n=a.yaxis.key;t=this.getComs("axis","xaxis"),e=this.getComs("axis","yaxis");var o=t.getX(),u=e.getX(),c=_.maxBy(i,function(t){return t[n].length})[n].length,l=t.calGroupStep(a.groupLabel||i[0][n].length),h=function(t,i,c){var h=d3.select(this);a.withAnimated&&(a.isFirst&&h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}}),h.transition().duration(a.animatedTiming).ease(a.animatedEasing)),t[n][c]!==e.getMin()&&void 0!==t[n][c]&&h.attr({d:function(t){var h=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(t[n][c])},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(h=a.customPos.call(s,h,i,c),_.pos2Path(h)):"function"==typeof a.customPath?a.customPath.call(s,h,c):_.pos2Path(h)}})||h.attr({d:function(t){var n=[{x:o(t[r])+l(""+c),y:u(e.getMin())},{x:o(t[r])+l(""+c),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())-1},{x:o(t[r])+l(""+c)+l.rangeBand(),y:u(e.getMin())}];return"function"==typeof a.customPos?(n=a.customPos.call(s,n,i,c),_.pos2Path(n)):"function"==typeof a.customPath?a.customPath.call(s,n,c):_.pos2Path(n)}})},d=this.series.selectAll(".series-group").data(this._data);this.enterSeries=d.enter().append("g").attr("class","series-group");for(var g=0;c>g;g++)d.each(function(t,e){var a=d3.select(this).select(".serie"+(g+1))[0][0];a&&h.call(d3.select(this).select(".serie"+(g+1))[0][0],t,e,g)}),this.enterSeries.append("path").attr("class","serie serie"+(g+1)).each(function(t,e){h.call(this,t,e,g)});d.selectAll(".serie.serie"+c+" + .serie").remove(),this.outerSeries=d.exit().remove()},updateBeforeRender:function(){this.beforeRender()},updateSeries:function(){BarMultiCustom.prototype.renderSeries.call(this)}}),module.exports=BarMultiCustom;
{
"name": "dchart-core",
"version": "1.1.8",
"version": "1.1.9",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

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