activeChartConfig.js 1.56 KB
const activeChartConfig = {
     type: 'line',
    data: {
    labels: [],
    datasets: [{
        data: [],
        backgroundColor: 'rgba(0,201,239,0.3)',
        borderColor: 'rgba(0,201,239,0.8)',
        borderWidth: 1,
        pointBorderColor: 'rgba(0, 0, 0, 0)',
        pointBackgroundColor: 'rgba(0, 0, 0, 0)',
        pointHoverBackgroundColor: 'rgb(255, 99, 132)',
        pointHoverBorderColor: 'rgb(255, 99, 132)'
    }],
    
  },
  options: {
    responsive: true,
    pointDotRadius: 1,
    pointDotStrokeWidth: 8,
    legend: false,
    scaleShowGridLines : false,
    tooltips: {
      intersect: false,
      displayColors: false
    },
    scales: {
        yAxes: [{
            display: false,
          /*  gridLines: { //网格
                color: "#fff",
                lineWidth:0,


            },*/
            
            ticks: {
                beginAtZero:true,
                //stepSize: 1,
               /* callback: function(value, index, values) {
                    if (Math.floor(value) === value) {
                        return value;
                    }
                },
                autoSkip: true,
                maxRotation: 10,
                maxTicksLimit: 10*/
                 fontColor: "#f00",
            }
        }],
        xAxes: [{
            display: false,
            /*gridLines: { //网格
                color: "#fff",
                zeroLineColor: '#666666',
                pointDot: false
            },*/

            
        }]
    }
  }
    
}       
                 


export default activeChartConfig;