Search code examples
amcharts

Amcharts time series data, first label showing date


I want to display only time series. but by default first label showing date. I want it to show "00:00"

https://i.sstatic.net/PdWuZ.png


Solution

  • You can set markPeriodChange to false in your categoryAxis to prevent the axis from bolding and using a different date format for the first date:

    AmCharts.makeChart("chartdiv", {
      // ...
      categoryAxis: {
        // ...
        markPeriodChange: false,
        // ...
      }
    });