Commit d05252ef authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix trivial

parent 0635a52b
...@@ -380,6 +380,12 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 --//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment