Browse Source

Fixed tests and parameters

pull/1289/head
Daniele Piccone 9 years ago
parent
commit
12e852364e
  1. 6
      c3.js
  2. 5
      c3.min.js
  3. 4
      spec/core-spec.js
  4. 2
      src/config.js

6
c3.js

@ -257,8 +257,8 @@
.on('mouseenter', function () { return config.onmouseover.call($$); })
.on('mouseleave', function () { return config.onmouseout.call($$); });
if ($$.config.classname) {
$$.svg.attr('class', $$.config.classname);
if ($$.config.svg_classname) {
$$.svg.attr('class', $$.config.svg_classname);
}
// Define defs
@ -1068,7 +1068,7 @@
c3_chart_internal_fn.getDefaultConfig = function () {
var config = {
bindto: '#chart',
classname: undefined,
svg_classname: undefined,
size_width: undefined,
size_height: undefined,
padding_left: undefined,

5
c3.min.js vendored

File diff suppressed because one or more lines are too long

4
spec/core-spec.js

@ -4,7 +4,9 @@ describe('c3 chart', function () {
var chart;
var args = {
svg_classname: 'customclass',
svg: {
classname: 'customclass'
},
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],

2
src/config.js

@ -1,7 +1,7 @@
c3_chart_internal_fn.getDefaultConfig = function () {
var config = {
bindto: '#chart',
classname: undefined,
svg_classname: undefined,
size_width: undefined,
size_height: undefined,
padding_left: undefined,

Loading…
Cancel
Save