diff --git a/c3.css b/c3.css index 5de1edf..fda4242 100644 --- a/c3.css +++ b/c3.css @@ -1,7 +1,7 @@ /*-- Chart --*/ .c3 svg { font: 10px sans-serif; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } + -webkit-tap-highlight-color: transparent; } .c3 path, .c3 line { fill: none; @@ -12,7 +12,11 @@ -moz-user-select: none; user-select: none; } -.c3-legend-item-tile, .c3-xgrid-focus, .c3-ygrid, .c3-event-rect, .c3-bars path { +.c3-legend-item-tile, +.c3-xgrid-focus, +.c3-ygrid, +.c3-event-rect, +.c3-bars path { shape-rendering: crispEdges; } .c3-chart-arc path { @@ -71,11 +75,11 @@ /*-- Region --*/ .c3-region { fill: steelblue; - fill-opacity: 0.1; } + fill-opacity: .1; } /*-- Brush --*/ .c3-brush .extent { - fill-opacity: 0.1; } + fill-opacity: .1; } /*-- Select - Drag --*/ /*-- Legend --*/ diff --git a/c3.js b/c3.js index aca979c..6987d5e 100644 --- a/c3.js +++ b/c3.js @@ -424,7 +424,7 @@ // for arc $$.arcWidth = $$.width - ($$.isLegendRight ? legendWidth + 10 : 0); $$.arcHeight = $$.height - ($$.isLegendRight ? 0 : 10); - if ($$.hasType('gauge')) { + if ($$.hasType('gauge') && !config.gauge_fullCircle) { $$.arcHeight += $$.height - $$.getGaugeLabelHeight(); } if ($$.updateRadius) { $$.updateRadius(); } @@ -1240,10 +1240,12 @@ pie_expand: {}, pie_expand_duration: 50, // gauge + gauge_fullCircle: false, gauge_label_show: true, gauge_label_format: undefined, gauge_min: 0, gauge_max: 100, + gauge_startingAngle: -1 * Math.PI/2, gauge_units: undefined, gauge_width: undefined, gauge_expand: {}, @@ -2655,7 +2657,7 @@ c3_chart_internal_fn.getCurrentHeight = function () { var $$ = this, config = $$.config, h = config.size_height ? config.size_height : $$.getParentHeight(); - return h > 0 ? h : 320 / ($$.hasType('gauge') ? 2 : 1); + return h > 0 ? h : 320 / ($$.hasType('gauge') && !config.gauge_fullCircle ? 2 : 1); }; c3_chart_internal_fn.getCurrentPaddingTop = function () { var $$ = this, @@ -3870,7 +3872,7 @@ text = "
" + title + " |
---|