Browse Source

Fix trivial

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
d05252ef1c
  1. 12
      c3.js

12
c3.js

@ -380,6 +380,12 @@
if (typeof c3.data.targets === 'undefined') return 0 if (typeof c3.data.targets === 'undefined') return 0
return typeof filter !== 'undefined' ? c3.data.targets.filter(filter).length : c3.data.targets.length; return typeof filter !== 'undefined' ? c3.data.targets.filter(filter).length : c3.data.targets.length;
} }
function category (i) {
return i < __axis_x_categories.length ? __axis_x_categories[i] : i
}
//-- Bar --//
function getBarTargetIndices () { function getBarTargetIndices () {
var indices = [] var indices = []
c3.data.targets.forEach(function(d,i) { c3.data.targets.forEach(function(d,i) {
@ -406,6 +412,9 @@
return h < 0 ? 0 : h return h < 0 ? 0 : h
} }
} }
//-- Type --//
function isLineType (d) { function isLineType (d) {
var id = (typeof d === 'string') ? d : d.id var id = (typeof d === 'string') ? d : d.id
return !(id in __data_types) || __data_types[id] === 'line' return !(id in __data_types) || __data_types[id] === 'line'
@ -414,9 +423,6 @@
var id = (typeof d === 'string') ? d : d.id var id = (typeof d === 'string') ? d : d.id
return __data_types[id] === 'bar' return __data_types[id] === 'bar'
} }
function category (i) {
return i < __axis_x_categories.length ? __axis_x_categories[i] : i
}
//-- Color --// //-- Color --//

Loading…
Cancel
Save