axes_x_tick_culling.js 556 B

12345678910111213141516171819
  1. var chart = c3.generate({
  2. data: {
  3. columns: [
  4. ['sample', 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 200, 100, 400, 150, 250]
  5. ]
  6. },
  7. axis: {
  8. x: {
  9. type: 'category',
  10. tick: {
  11. culling: {
  12. max: 4 // the number of tick texts will be adjusted to less than this value
  13. }
  14. // for normal axis, default on
  15. // for category axis, default off
  16. }
  17. }
  18. }
  19. });