X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/f814ae7739687e75239e1a830896aa099c38ead3..0d28ef3dfb5db3645cba61437df118507a1e04b8:/web/static/c3.js diff --git a/web/static/c3.js b/web/static/c3.js index 4144c44..8ff48be 100644 --- a/web/static/c3.js +++ b/web/static/c3.js @@ -1,4 +1,4 @@ -/* @license C3.js v0.6.9 | (c) C3 Team and other contributors | http://c3js.org/ */ +/* @license C3.js v0.6.11 | (c) C3 Team and other contributors | http://c3js.org/ */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : @@ -1147,7 +1147,7 @@ }; var c3 = { - version: "0.6.9", + version: "0.6.11", chart: { fn: Chart.prototype, internal: { @@ -2028,9 +2028,7 @@ $$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect').attr('width', $$.width).attr('height', $$.height); $$.svg.select('#' + $$.clipIdForXAxis).select('rect').attr('x', $$.getXAxisClipX.bind($$)).attr('y', $$.getXAxisClipY.bind($$)).attr('width', $$.getXAxisClipWidth.bind($$)).attr('height', $$.getXAxisClipHeight.bind($$)); $$.svg.select('#' + $$.clipIdForYAxis).select('rect').attr('x', $$.getYAxisClipX.bind($$)).attr('y', $$.getYAxisClipY.bind($$)).attr('width', $$.getYAxisClipWidth.bind($$)).attr('height', $$.getYAxisClipHeight.bind($$)); - $$.svg.select('#' + $$.clipIdForSubchart).select('rect').attr('width', $$.width).attr('height', brush.size() ? brush.attr('height') : 0); // MEMO: parent div's height will be bigger than svg when - - $$.selectChart.style('max-height', $$.currentHeight + "px"); + $$.svg.select('#' + $$.clipIdForSubchart).select('rect').attr('width', $$.width).attr('height', brush.size() ? brush.attr('height') : 0); }; ChartInternal.prototype.updateDimension = function (withoutAxis) { @@ -5592,7 +5590,7 @@ mainArcLabelLine.style("display", "none"); } else { mainArcLabelLine.style("fill", function (d) { - return config.color_pattern.length > 0 ? $$.levelColor(d.data.values[0].value) : $$.color(d.data); + return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data); }).style("display", config.gauge_labelLine_show ? "" : "none").each(function (d) { var lineLength = 0, lineThickness = 2, @@ -6052,7 +6050,7 @@ asValue = threshold.unit === 'value', values = threshold.values && threshold.values.length ? threshold.values : [], max = threshold.max || 100; - return notEmpty(config.color_threshold) ? function (value) { + return notEmpty(threshold) && notEmpty(colors) ? function (value) { var i, v, color = colors[colors.length - 1]; @@ -9689,8 +9687,7 @@ }; ChartInternal.prototype.getParentHeight = function () { - var h = this.selectChart.style('height'); - return h.indexOf('px') > 0 ? +h.replace('px', '') : 0; + return this.getParentRectValue('height'); }; ChartInternal.prototype.getSvgLeft = function (withoutRecompute) {