How to use echarts-stat - 2 common examples

To help you get started, we’ve selected a few echarts-stat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IdenPin / x-charts / src / views / Scatter.vue View on Github external
renderCharts() {
      // 图一
      this.chart0 = new Xcharts('chart0', 'scatter').setData()
      // 图二
      this.chart1 = new Xcharts('chart1', 'scatter', this.opt).setData({
        legendData,
        rows
      })
      // 图三
      var myRegression = ecStat.regression('logarithmic', ecStatData)
      myRegression.points.sort(function(a, b) {
        return a[0] - b[0]
      })
      this.chart2 = new Xcharts('chart2', 'scatter', this.opt).setData({
        ecStat: {
          data: [
            {
              coord: myRegression.points[myRegression.points.length - 1]
            }
          ],
          formula: ecStat.regression('logarithmic', ecStatData)
        },
        legendData,
        rows
      })
      // 图四
github IdenPin / x-charts / src / views / Scatter.vue View on Github external
legendData,
        rows
      })
      // 图三
      var myRegression = ecStat.regression('logarithmic', ecStatData)
      myRegression.points.sort(function(a, b) {
        return a[0] - b[0]
      })
      this.chart2 = new Xcharts('chart2', 'scatter', this.opt).setData({
        ecStat: {
          data: [
            {
              coord: myRegression.points[myRegression.points.length - 1]
            }
          ],
          formula: ecStat.regression('logarithmic', ecStatData)
        },
        legendData,
        rows
      })
      // 图四
      this.chart3 = new Xcharts('chart3', 'scatter', {
        xAxis: {
          scale: true
        },
        yAxis: {
          scale: true
        },
        series: [
          {
            type: 'effectScatter',
            symbolSize: 10

echarts-stat

a statistical tool for ECharts

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular echarts-stat functions

Similar packages