getOptionSide()

in ui/angular/src/app/service/chart.service.ts [93:160]


  getOptionSide(metric) {
    var data = this.getMetricData(metric);
    var self = this;
    var option = {
      title: {
        show: false
      },
      backgroundColor: "transparent",
      grid: {
        right: "5%",
        left: "5%",
        bottom: "5%",
        top: 30,
        containLabel: true
      },
      tooltip: {
        trigger: "axis",
        formatter: function (params) {
          return self.getTooltip(params);
        }
      },
      xAxis: {
        type: "time",
        splitLine: {
          show: false
        },
        splitNumber: 2,
        axisLine: {
          lineStyle: {
            color: "white"
          }
        },
        axisLabel: {
          color: "white"
        },
        nameTextStyle: {
          color: "white"
        }
      },
      yAxis: {
        type: "value",
        scale: true,
        splitNumber: 2,
        name: "accuracy%",
        axisLabel: {
          formatter: this.formatter_value,
          color: "white"
        },
        splitLine: {
          lineStyle: {
            type: "dashed"
          }
        },
        axisLine: {
          lineStyle: {
            color: "white"
          }
        },
        nameTextStyle: {
          color: "white"
        },
        max: 100
      },
      series: {}
    };
    option.series = this.getSeries(metric);
    return option;
  }