Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
})
// 图四
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