Browse Source

Fix bug

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

9
c3.js

@ -182,6 +182,11 @@
if (isTimeSeries) {
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
xAxis.tickOffset = function () {
return 0
@ -191,10 +196,6 @@
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
if (isCategorized) {

Loading…
Cancel
Save