pivottable
Advanced tools
Comparing version 2.21.0 to 2.22.0
@@ -185,2 +185,5 @@ (function() { | ||
"Line Chart": makePlotlyChart(), | ||
"Area Chart": makePlotlyChart({ | ||
stackgroup: 1 | ||
}), | ||
"Scatter Chart": makePlotlyScatterChart() | ||
@@ -187,0 +190,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
(function(){var t;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery"),require("plotly.js")):"function"==typeof define&&define.amd?define(["jquery","plotly.js"],t):t(jQuery,Plotly)})(function(t,e){var o,r;return o=function(o,r,n){return null==o&&(o={}),null==r&&(r={}),null==n&&(n=!1),function(i,l){var a,s,u,d,h,p,y,g,c,v,j,f;return d={localeStrings:{vs:"vs",by:"by"},plotly:{}},l=t.extend(!0,{},d,l),v=i.getRowKeys(),a=i.getColKeys(),f=n?a:v,0===f.length&&f.push([]),u=n?v:a,0===u.length&&u.push([]),h=i.aggregatorName,i.valAttrs.length&&(h+="("+i.valAttrs.join(", ")+")"),s=f.map(function(e){var r,l,a,s,d,p,y;for(y=[],a=[],l=0,s=u.length;l<s;l++)r=u[l],p=parseFloat(i.getAggregator(n?r:e,n?e:r).value()),y.push(isFinite(p)?p:null),a.push(r.join("-")||" ");return d={name:e.join("-")||h},d.x=n?y:a,d.y=n?a:y,t.extend(d,o)}),n?(y=i.rowAttrs.join("-"),p=i.colAttrs.join("-")):(y=i.colAttrs.join("-"),p=i.rowAttrs.join("-")),j=h,""!==y&&(j+=" "+l.localeStrings.vs+" "+y),""!==p&&(j+=" "+l.localeStrings.by+" "+p),g={title:j,hovermode:"closest",width:window.innerWidth/1.4,height:window.innerHeight/1.4-50,xaxis:{title:n?h:null,automargin:!0},yaxis:{title:n?null:h,automargin:!0}},c=t("<div>").appendTo(t("body")),e.newPlot(c[0],s,t.extend(g,r,l.plotly)),c.detach()}},r=function(){return function(o,r){var n,i,l,a,s,u,d,h,p,y,g,c,v,j;for(a={localeStrings:{vs:"vs",by:"by"},plotly:{}},r=t.extend(!0,{},a,r),v=o.getRowKeys(),0===v.length&&v.push([]),i=o.getColKeys(),0===i.length&&i.push([]),l={x:[],y:[],text:[],type:"scatter",mode:"markers"},s=0,h=v.length;s<h;s++)for(c=v[s],u=0,p=i.length;u<p;u++)n=i[u],j=o.getAggregator(c,n).value(),null!=j&&(l.x.push(n.join("-")),l.y.push(c.join("-")),l.text.push(j));return d={title:o.rowAttrs.join("-")+" vs "+o.colAttrs.join("-"),hovermode:"closest",xaxis:{title:o.colAttrs.join("-"),domain:[.1,1]},yaxis:{title:o.rowAttrs.join("-")},width:window.innerWidth/1.5,height:window.innerHeight/1.4-50},y=t("<div>",{style:"display:none;"}).appendTo(t("body")),g=t("<div>").appendTo(y),e.plot(g[0],[l],t.extend(d,r.plotly)),g.detach(),y.remove(),g}},t.pivotUtilities.plotly_renderers={"Horizontal Bar Chart":o({type:"bar",orientation:"h"},{barmode:"group"},!0),"Horizontal Stacked Bar Chart":o({type:"bar",orientation:"h"},{barmode:"relative"},!0),"Bar Chart":o({type:"bar"},{barmode:"group"}),"Stacked Bar Chart":o({type:"bar"},{barmode:"relative"}),"Line Chart":o(),"Scatter Chart":r()}})}).call(this); | ||
(function(){var t;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery"),require("plotly.js")):"function"==typeof define&&define.amd?define(["jquery","plotly.js"],t):t(jQuery,Plotly)})(function(t,e){var r,o;return r=function(r,o,n){return null==r&&(r={}),null==o&&(o={}),null==n&&(n=!1),function(i,l){var a,s,u,h,d,p,y,g,c,v,j,f;return h={localeStrings:{vs:"vs",by:"by"},plotly:{}},l=t.extend(!0,{},h,l),v=i.getRowKeys(),a=i.getColKeys(),f=n?a:v,0===f.length&&f.push([]),u=n?v:a,0===u.length&&u.push([]),d=i.aggregatorName,i.valAttrs.length&&(d+="("+i.valAttrs.join(", ")+")"),s=f.map(function(e){var o,l,a,s,h,p,y;for(y=[],a=[],l=0,s=u.length;l<s;l++)o=u[l],p=parseFloat(i.getAggregator(n?o:e,n?e:o).value()),y.push(isFinite(p)?p:null),a.push(o.join("-")||" ");return h={name:e.join("-")||d},h.x=n?y:a,h.y=n?a:y,t.extend(h,r)}),n?(y=i.rowAttrs.join("-"),p=i.colAttrs.join("-")):(y=i.colAttrs.join("-"),p=i.rowAttrs.join("-")),j=d,""!==y&&(j+=" "+l.localeStrings.vs+" "+y),""!==p&&(j+=" "+l.localeStrings.by+" "+p),g={title:j,hovermode:"closest",width:window.innerWidth/1.4,height:window.innerHeight/1.4-50,xaxis:{title:n?d:null,automargin:!0},yaxis:{title:n?null:d,automargin:!0}},c=t("<div>").appendTo(t("body")),e.newPlot(c[0],s,t.extend(g,o,l.plotly)),c.detach()}},o=function(){return function(r,o){var n,i,l,a,s,u,h,d,p,y,g,c,v,j;for(a={localeStrings:{vs:"vs",by:"by"},plotly:{}},o=t.extend(!0,{},a,o),v=r.getRowKeys(),0===v.length&&v.push([]),i=r.getColKeys(),0===i.length&&i.push([]),l={x:[],y:[],text:[],type:"scatter",mode:"markers"},s=0,d=v.length;s<d;s++)for(c=v[s],u=0,p=i.length;u<p;u++)n=i[u],j=r.getAggregator(c,n).value(),null!=j&&(l.x.push(n.join("-")),l.y.push(c.join("-")),l.text.push(j));return h={title:r.rowAttrs.join("-")+" vs "+r.colAttrs.join("-"),hovermode:"closest",xaxis:{title:r.colAttrs.join("-"),domain:[.1,1]},yaxis:{title:r.rowAttrs.join("-")},width:window.innerWidth/1.5,height:window.innerHeight/1.4-50},y=t("<div>",{style:"display:none;"}).appendTo(t("body")),g=t("<div>").appendTo(y),e.plot(g[0],[l],t.extend(h,o.plotly)),g.detach(),y.remove(),g}},t.pivotUtilities.plotly_renderers={"Horizontal Bar Chart":r({type:"bar",orientation:"h"},{barmode:"group"},!0),"Horizontal Stacked Bar Chart":r({type:"bar",orientation:"h"},{barmode:"relative"},!0),"Bar Chart":r({type:"bar"},{barmode:"group"}),"Stacked Bar Chart":r({type:"bar"},{barmode:"relative"}),"Line Chart":r(),"Area Chart":r({stackgroup:1}),"Scatter Chart":o()}})}).call(this); | ||
//# sourceMappingURL=plotly_renderers.min.js.map |
@@ -1,4 +0,4 @@ | ||
(MIT License) | ||
MIT License | ||
PivotTable.js is © 2012-2013 Nicolas Kruchten, Datacratic, other contributors | ||
Copyright (c) 2012 Nicolas Kruchten, Datacratic, other contributors | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "pivottable", | ||
"version": "2.21.0", | ||
"version": "2.22.0", | ||
"description": "Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop", | ||
@@ -5,0 +5,0 @@ "main": "dist/pivot.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
989501
5140