Fix retention undefined — rename graph data to retCurve, KPI retention preserved
This commit is contained in:
1 parent
a825d84fee
commit
aa1bf30556
1 file changed
+7
-7
@@ -328,7 +328,7 @@ const DATA = {
|
||||
direct:[160,320,520,780,1050,1350,1650,1900,2200,2500,2800,3100],
|
||||
vk:[140,260,420,620,850,1100,1350,1600,1850,2100,2400,2700],
|
||||
},
|
||||
retention: {
|
||||
retCurve: {
|
||||
labels:['М1','М2','М3','М4','М5','М6','М7','М8','М9','М10','М11','М12'],
|
||||
seo:[100,78,65,56,50,45,40,36,33,30,28,26],
|
||||
direct:[100,72,58,48,42,37,33,30,28,25,23,22],
|
||||
@@ -421,7 +421,7 @@ const DATA = {
|
||||
direct:[10000,18000,28000,40000,55000,68000,80000,92000,100000,108000,115000,120000],
|
||||
vk:[7000,12000,18000,26000,35000,45000,54000,62000,70000,78000,84000,90000],
|
||||
},
|
||||
retention: {
|
||||
retCurve: {
|
||||
labels:['М1','М2','М3','М4','М5','М6','М7','М8','М9','М10','М11','М12'],
|
||||
seo:[100,85,78,72,68,65,62,60,58,56,55,54],
|
||||
direct:[100,78,65,58,52,48,44,42,40,38,37,36],
|
||||
@@ -521,7 +521,7 @@ const DATA = {
|
||||
direct:[160000,320000,480000,640000,820000,1000000,1180000,1350000,1500000,1650000,1800000,1950000],
|
||||
vk:[100000,200000,320000,450000,600000,750000,900000,1050000,1200000,1350000,1500000,1650000],
|
||||
},
|
||||
retention: {
|
||||
retCurve: {
|
||||
labels:['М1','М2','М3','М4','М5','М6','М7','М8','М9','М10','М11','М12'],
|
||||
seo:[100,82,72,65,60,56,53,51,50,49,48,48],
|
||||
direct:[100,70,55,45,38,34,30,28,26,25,24,24],
|
||||
@@ -832,12 +832,12 @@ function renderLTV(d) {
|
||||
tooltip:{trigger:'axis',backgroundColor:'#111',borderColor:'#222',textStyle:{color:'#fafafa',fontSize:11}},
|
||||
legend:{data:['SEO','Директ','VK'],textStyle:{color:'#52525b',fontSize:10},top:0},
|
||||
grid:{left:44,right:16,top:28,bottom:28},
|
||||
xAxis:{type:'category',data:c.retention.labels,axisLine:{lineStyle:{color:'#1e1e22'}},axisLabel:{color:'#52525b',fontSize:10}},
|
||||
xAxis:{type:'category',data:c.retCurve.labels,axisLine:{lineStyle:{color:'#1e1e22'}},axisLabel:{color:'#52525b',fontSize:10}},
|
||||
yAxis:{type:'value',splitLine:{lineStyle:{color:'#1a1a1e'}},axisLabel:{color:'#52525b',fontSize:10,formatter:'{value}%'}},
|
||||
series:[
|
||||
{name:'SEO',type:'line',data:c.retention.seo,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#22c55e'}},
|
||||
{name:'Директ',type:'line',data:c.retention.direct,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#3b82f6'}},
|
||||
{name:'VK',type:'line',data:c.retention.vk,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#f59e0b'}},
|
||||
{name:'SEO',type:'line',data:c.retCurve.seo,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#22c55e'}},
|
||||
{name:'Директ',type:'line',data:c.retCurve.direct,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#3b82f6'}},
|
||||
{name:'VK',type:'line',data:c.retCurve.vk,smooth:.4,symbol:'none',lineStyle:{width:2,color:'#f59e0b'}},
|
||||
],
|
||||
animationDuration:600,
|
||||
},true);
|
||||
|
||||
Reference in new issue
Block a user