Skip to content

Commit 5d358f3

Browse files
committed
chore(version): bump to v0.5.4
1 parent c45b30f commit 5d358f3

File tree

9 files changed

+26
-16
lines changed

9 files changed

+26
-16
lines changed

.bmp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 0.5.3
2+
version: 0.5.4
33
commit: 'chore(version): bump to v%.%.%'
44
files:
55
src/core.js: 'version: "%.%.%"'

c3.js

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @license C3.js v0.5.3 | (c) C3 Team and other contributors | http://c3js.org/ */
1+
/* @license C3.js v0.5.4 | (c) C3 Team and other contributors | http://c3js.org/ */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -698,11 +698,14 @@
698698
return id in config.data_axes ? config.data_axes[id] : 'y';
699699
};
700700
c3_axis_fn.getXAxisTickFormat = function getXAxisTickFormat() {
701+
// #2251 previously set any negative values to a whole number,
702+
// however both should be truncated according to the users format specification
701703
var $$ = this.owner,
702-
config = $$.config,
703-
format = $$.isTimeSeries() ? $$.defaultAxisTimeFormat : $$.isCategorized() ? $$.categoryName : function (v) {
704-
return v < 0 ? v.toFixed(0) : v;
704+
config = $$.config;
705+
var format = $$.isTimeSeries() ? $$.defaultAxisTimeFormat : $$.isCategorized() ? $$.categoryName : function (v) {
706+
return v;
705707
};
708+
706709
if (config.axis_x_tick_format) {
707710
if (isFunction(config.axis_x_tick_format)) {
708711
format = config.axis_x_tick_format;
@@ -997,7 +1000,7 @@
9971000
$$.axes.subx.style("opacity", isHidden ? 0 : 1).call($$.subXAxis, transition);
9981001
};
9991002

1000-
var c3 = { version: "0.5.3" };
1003+
var c3 = { version: "0.5.4" };
10011004

10021005
var c3_chart_fn;
10031006
var c3_chart_internal_fn;
@@ -4146,7 +4149,7 @@
41464149
$$.removeHiddenTargetIds(targetIds);
41474150
targets = $$.svg.selectAll($$.selectorTargets(targetIds));
41484151

4149-
targets.transition().style('opacity', 1, 'important').call($$.endall, function () {
4152+
targets.transition().style('display', 'initial', 'important').style('opacity', 1, 'important').call($$.endall, function () {
41504153
targets.style('opacity', null).style('opacity', 1);
41514154
});
41524155

@@ -4169,6 +4172,7 @@
41694172

41704173
targets.transition().style('opacity', 0, 'important').call($$.endall, function () {
41714174
targets.style('opacity', null).style('opacity', 0);
4175+
targets.style('display', 'none');
41724176
});
41734177

41744178
if (options.withLegend) {
@@ -4274,8 +4278,10 @@
42744278
$$.redraw({ withY: $$.config.zoom_rescale, withSubchart: false });
42754279
}
42764280
$$.config.zoom_onzoom.call(this, $$.x.orgDomain());
4281+
return domain;
4282+
} else {
4283+
return $$.x.domain();
42774284
}
4278-
return domain;
42794285
};
42804286
c3_chart_fn.zoom.enable = function (enabled) {
42814287
var $$ = this.internal;

c3.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "c3",
33
"repo": "masayuki0812/c3",
44
"description": "A D3-based reusable chart library",
5-
"version": "0.5.3",
5+
"version": "0.5.4",
66
"keywords": [],
77
"dependencies": {
88
"mbostock/d3": "v3.5.6"

docs/index.html.haml

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838

3939
%h3 Change Log
4040
%ul
41+
%li
42+
<a href="https://github.com/c3js/c3/releases/tag/v0.5.4">v0.5.4</a><span class="gray">&nbsp;-&nbsp;2018-04-23</span>
43+
%ul
44+
%li Bug fixes.
4145
%li
4246
<a href="https://github.com/c3js/c3/releases/tag/v0.5.3">v0.5.3</a><span class="gray">&nbsp;-&nbsp;2018-04-12</span>
4347
%ul

docs/js/c3.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

htdocs/samples/chart_bar_max_width.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<body>
66
<div id="chart"></div>
77

8-
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
8+
<script src="http://d3js.org/d3.v4.min.js" charset="utf-8"></script>
99
<script src="/js/c3.js"></script>
1010
<script>
1111
var chart = c3.generate({

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "c3",
3-
"version": "0.5.3",
3+
"version": "0.5.4",
44
"description": "D3-based reusable chart library",
55
"main": "c3.js",
66
"scripts": {

src/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Axis from './axis';
22
import CLASS from './class';
33
import { isValue, isFunction, isString, isUndefined, isDefined, ceil10, asHalfPixel, diffDomain, isEmpty, notEmpty, getOption, hasValue, sanitise, getPathBox } from './util';
44

5-
export var c3 = { version: "0.5.3" };
5+
export var c3 = { version: "0.5.4" };
66

77
export var c3_chart_fn;
88
export var c3_chart_internal_fn;

0 commit comments

Comments
 (0)