]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/c3.js
Describe how to setup a virtualenv to generate the sphinx documentation.
[chrisu/seepark.git] / web / static / c3.js
index 4144c44d839bd2a00f8bf5218a2e3990bf04cc80..8ff48be0738890bf4822c0330988c1669f128d27 100644 (file)
@@ -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) :
   };
 
   var c3 = {
-    version: "0.6.9",
+    version: "0.6.11",
     chart: {
       fn: Chart.prototype,
       internal: {
     $$.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 <!DOCTYPE html>
-
-    $$.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) {
         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,
         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];
   };
 
   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) {