'how to do tickamount in apex chart using angular 12

line chart

How to minminum the labels of xaxis in apex chart using angular ?

 intializationChartoption(series: number[]):void {
     this.lineChartOptions = true
   
    this.title ={
      text: 'linechart'
    };

    this.xaxis= {
      
     
      
      type: 'datetime',
      labels: {
        format: 'MM yyyy'
      },
      

     
    };
    

    this.yaxis ={
      show: false,
      showAlways: false
    }
    console.log(this.yaxis)
    this.series = [{
      name: 'java',
      data: series  
    }]
    console.log(this.series)

    this.dataLabels ={
      enabled: false
    }

    this.markers ={
      size: 0
    }
      
    this.chart = {

      
      
      type: "area",
      stacked: false,
      height: 250,
      animations: {
        enabled: false},
      
      
      zoom: {
        type: "x",
        enabled: false,
        autoScaleYaxis: true
      },
      toolbar: {
        show: false
      },
      
    };
  }

I have given type date time for x axis but it is not working and in that line chart , values having 8000 data i.e coming from api .

kindly help me to format the data in line chart



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source