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.0.24 to 1.0.25

2

bar/barCustom.js

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

function BarCustom(t,a){var s={margin:{top:20,right:20,bottom:20,left:20},xaxis:{orient:"bottom",type:"category"}};_.deepMerge(s,a),DataV.call(this,t,s)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarCustom=DataV.extend(BarCustom,{renderSeries:function(){this.series.classed("bar-chart-g",!0);var t,a,s=this.options,e=this.data(),i=this;t=this.getComs("axis","xaxis"),a=this.getComs("axis","yaxis");var o=t.getX(),n=a.getX(),r=s.yaxis.key,c=s.xaxis.key;this.series=this.series.selectAll(".serie").data(e).enter().append("path").each(function(t,e){var u=d3.select(this);s.withAnimated?u.attr({"class":"serie",d:function(t){var r=[{x:o(t[c]),y:n(a.getMin())},{x:o(t[c]),y:n(a.getMin())},{x:o(t[c])+o.rangeBand(),y:n(a.getMin())},{x:o(t[c])+o.rangeBand(),y:n(a.getMin())}];return"function"==typeof s.customPos?(r=s.customPos.call(i,r,e),_.pos2Path(r)):"function"==typeof s.customPath?s.customPath.call(i,r,e):_.pos2Path(r)}}).transition().duration(s.animatedTiming).ease(s.animatedEasing).attr({"class":"serie",d:function(t){var u=[{x:o(t[c]),y:n(a.getMin())},{x:o(t[c]),y:n(t[r])},{x:o(t[c])+o.rangeBand(),y:n(t[r])},{x:o(t[c])+o.rangeBand(),y:n(a.getMin())}];return"function"==typeof s.customPos?(u=s.customPos.call(i,u,e),_.pos2Path(u)):"function"==typeof s.customPath?s.customPath.call(i,u,e):_.pos2Path(u)}}):u.attr({"class":"serie",d:function(t){var u=[{x:o(t[c]),y:n(a.getMin())},{x:o(t[c]),y:n(t[r])},{x:o(t[c])+o.rangeBand(),y:n(t[r])},{x:o(t[c])+o.rangeBand(),y:n(a.getMin())}];return"function"==typeof s.customPos?(u=s.customPos.call(i,u,e),_.pos2Path(u)):"function"==typeof s.customPath?s.customPath.call(i,u,e):_.pos2Path(u)}})})},updateSeries:function(){var t=this.options,a=this.data(),s=this,e=this.getComs("axis","xaxis"),o=this.getComs("axis","yaxis"),n=e.getX(),r=o.getX(),c=t.yaxis.key,u=t.xaxis.key;this.series.data(a),this.series.attr({d:function(a){var e=[{x:n(a[u]),y:r(o.getMin())},{x:n(a[u]),y:r(a[c])},{x:n(a[u])+n.rangeBand(),y:r(a[c])},{x:n(a[u])+n.rangeBand(),y:r(o.getMin())}];return"function"==typeof t.customPos?(e=t.customPos.call(s,e,i),_.pos2Path(e)):"function"==typeof t.customPath?t.customPath.call(s,e,i):_.pos2Path(e)}})}}),module.exports=BarCustom;
function BarCustom(t,a){var s={margin:{top:20,right:20,bottom:20,left:20},xaxis:{orient:"bottom",type:"category"}};_.deepMerge(s,a),DataV.call(this,t,s)}var DataV=require("../datav"),d3=require("d3"),_=require("../util");BarCustom=DataV.extend(BarCustom,{renderSeries:function(){this.series.classed("bar-chart-g",!0);var t,a,s=this.options,e=this.data(),i=this;t=this.getComs("axis","xaxis"),a=this.getComs("axis","yaxis");var n=t.getX(),o=a.getX(),r=s.yaxis.key,c=s.xaxis.key;this.series=this.series.selectAll(".serie").data(e).enter().append("path").each(function(t,e){var u=d3.select(this);s.withAnimated?u.attr({"class":"serie",d:function(t){var r=[{x:n(t[c]),y:o(a.getMin())},{x:n(t[c]),y:o(a.getMin())},{x:n(t[c])+n.rangeBand(),y:o(a.getMin())},{x:n(t[c])+n.rangeBand(),y:o(a.getMin())}];return"function"==typeof s.customPos?(r=s.customPos.call(i,r,e),_.pos2Path(r)):"function"==typeof s.customPath?s.customPath.call(i,r,e):_.pos2Path(r)}}).transition().duration(s.animatedTiming).ease(s.animatedEasing).attr({"class":"serie",d:function(t){var u=[{x:n(t[c]),y:o(a.getMin())},{x:n(t[c]),y:o(t[r])},{x:n(t[c])+n.rangeBand(),y:o(t[r])},{x:n(t[c])+n.rangeBand(),y:o(a.getMin())}];return"function"==typeof s.customPos?(u=s.customPos.call(i,u,e),_.pos2Path(u)):"function"==typeof s.customPath?s.customPath.call(i,u,e):_.pos2Path(u)}}):u.attr({"class":"serie",d:function(t){var u=[{x:n(t[c]),y:o(a.getMin())},{x:n(t[c]),y:o(t[r])},{x:n(t[c])+n.rangeBand(),y:o(t[r])},{x:n(t[c])+n.rangeBand(),y:o(a.getMin())}];return"function"==typeof s.customPos?(u=s.customPos.call(i,u,e),_.pos2Path(u)):"function"==typeof s.customPath?s.customPath.call(i,u,e):_.pos2Path(u)}})})},updateSeries:function(){var t=this.options,a=this.data(),s=this,e=this.getComs("axis","xaxis"),i=this.getComs("axis","yaxis"),n=e.getX(),o=i.getX(),r=t.yaxis.key,c=t.xaxis.key;this.series.data(a),this.series.each(function(a,e){var u=d3.select(this);u.attr({d:function(a){var u=[{x:n(a[c]),y:o(i.getMin())},{x:n(a[c]),y:o(a[r])},{x:n(a[c])+n.rangeBand(),y:o(a[r])},{x:n(a[c])+n.rangeBand(),y:o(i.getMin())}];return"function"==typeof t.customPos?(u=t.customPos.call(s,u,e),_.pos2Path(u)):"function"==typeof t.customPath?t.customPath.call(s,u,e):_.pos2Path(u)}})})}}),module.exports=BarCustom;
{
"name": "dchart-core",
"version": "1.0.24",
"version": "1.0.25",
"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