diff --git a/c3.js b/c3.js index f83d65f..2045490 100644 --- a/c3.js +++ b/c3.js @@ -468,7 +468,9 @@ $$.updateXDomain(targetsToShow, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain); if (!config.axis_x_tick_values) { if (config.axis_x_tick_fit || config.axis_x_tick_count) { - tickValues = $$.generateTickValues($$.mapTargetsToUniqueXs(targetsToShow), config.axis_x_tick_count, $$.isTimeSeries()); + if ( config.axis_x_tick_autoGenerate ){ + tickValues = $$.generateTickValues($$.mapTargetsToUniqueXs(targetsToShow), config.axis_x_tick_count, $$.isTimeSeries()); + } } else { tickValues = undefined; } @@ -975,6 +977,7 @@ axis_x_type: 'indexed', axis_x_localtime: true, axis_x_categories: [], + axis_x_tick_autoGenerate: false, axis_x_tick_centered: false, axis_x_tick_format: undefined, axis_x_tick_culling: {},