|
1 | | -/* @license C3.js v0.7.9 | (c) C3 Team and other contributors | http://c3js.org/ */ |
| 1 | +/* @license C3.js v0.7.10 | (c) C3 Team and other contributors | http://c3js.org/ */ |
2 | 2 | (function (global, factory) { |
3 | 3 | typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
4 | 4 | typeof define === 'function' && define.amd ? define(factory) : |
|
1232 | 1232 | }; |
1233 | 1233 |
|
1234 | 1234 | var c3 = { |
1235 | | - version: "0.7.9", |
| 1235 | + version: "0.7.10", |
1236 | 1236 | chart: { |
1237 | 1237 | fn: Chart.prototype, |
1238 | 1238 | internal: { |
|
4240 | 4240 | return String(this) + padString.slice(0, targetLength); |
4241 | 4241 | } |
4242 | 4242 | }; |
| 4243 | + } // Object.assign polyfill for IE11 |
| 4244 | + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill |
| 4245 | + |
| 4246 | + |
| 4247 | + if (typeof Object.assign !== 'function') { |
| 4248 | + // Must be writable: true, enumerable: false, configurable: true |
| 4249 | + Object.defineProperty(Object, "assign", { |
| 4250 | + value: function assign(target, varArgs) { |
| 4251 | + |
| 4252 | + if (target === null || target === undefined) { |
| 4253 | + throw new TypeError('Cannot convert undefined or null to object'); |
| 4254 | + } |
| 4255 | + |
| 4256 | + var to = Object(target); |
| 4257 | + |
| 4258 | + for (var index = 1; index < arguments.length; index++) { |
| 4259 | + var nextSource = arguments[index]; |
| 4260 | + |
| 4261 | + if (nextSource !== null && nextSource !== undefined) { |
| 4262 | + for (var nextKey in nextSource) { |
| 4263 | + // Avoid bugs when hasOwnProperty is shadowed |
| 4264 | + if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { |
| 4265 | + to[nextKey] = nextSource[nextKey]; |
| 4266 | + } |
| 4267 | + } |
| 4268 | + } |
| 4269 | + } |
| 4270 | + |
| 4271 | + return to; |
| 4272 | + }, |
| 4273 | + writable: true, |
| 4274 | + configurable: true |
| 4275 | + }); |
4243 | 4276 | } |
4244 | 4277 | /* jshint ignore:end */ |
4245 | 4278 |
|
|
9629 | 9662 | }; |
9630 | 9663 |
|
9631 | 9664 | ChartInternal.prototype.redrawBar = function (drawBar, withTransition, transition) { |
9632 | | - return [(withTransition ? this.mainBar.transition(transition) : this.mainBar).attr('d', drawBar).style("stroke", this.color).style("fill", this.color).style("opacity", 1)]; |
| 9665 | + var $$ = this; |
| 9666 | + return [(withTransition ? this.mainBar.transition(transition) : this.mainBar).attr('d', drawBar).style("stroke", this.color).style("fill", this.color).style("opacity", function (d) { |
| 9667 | + return $$.isTargetToShow(d.id) ? 1 : 0; |
| 9668 | + })]; |
9633 | 9669 | }; |
9634 | 9670 |
|
9635 | 9671 | ChartInternal.prototype.getBarW = function (axis, barTargetsNum) { |
|
0 commit comments