Browse Source

Fix bug

pull/1/head
Masayuki Tanaka 12 years ago
parent
commit
71b794f889
  1. 9
      c3.js

9
c3.js

@ -182,6 +182,11 @@
if (isTimeSeries) { if (isTimeSeries) {
xAxis.tickFormat(customTimeFormat) xAxis.tickFormat(customTimeFormat)
}
if (isCategorized) {
xAxis.categories(__axis_x_categories).tickCentered(__axis_x_tick_centered)
subXAxis.categories(__axis_x_categories).tickCentered(__axis_x_tick_centered)
} else {
// TODO: fix // TODO: fix
xAxis.tickOffset = function () { xAxis.tickOffset = function () {
return 0 return 0
@ -191,10 +196,6 @@
return 0 return 0
} }
} }
if (isCategorized) {
xAxis.categories(__axis_x_categories).tickCentered(__axis_x_tick_centered)
subXAxis.categories(__axis_x_categories).tickCentered(__axis_x_tick_centered)
}
// Use custom scale if needed // Use custom scale if needed
if (isCategorized) { if (isCategorized) {

Loading…
Cancel
Save