Authored by tanling

no message

function getEchartOption(title, threeContext, xData, yLeftData, yRightData, ratio){
function getEchartOption(title, threeContext, xData, yLeftData, yRightData, ratio, yleftMax, yRightMax){
var option = {
title:{
text: title
... ... @@ -37,8 +37,8 @@ function getEchartOption(title, threeContext, xData, yLeftData, yRightData, rati
type: 'value',
name: threeContext[0],
min: 0,
max: 250,
interval: 50,
max: yleftMax,
interval: yleftMax/10,
axisLabel: {
formatter: '{value} ¥'
}
... ... @@ -47,8 +47,8 @@ function getEchartOption(title, threeContext, xData, yLeftData, yRightData, rati
type: 'value',
name: threeContext[1],
min: 0,
max: 25,
interval: 5,
max: yRightMax,
interval: yRightMax/10,
axisLabel: {
formatter: '{value} '
}
... ...
... ... @@ -58,33 +58,96 @@
if (data.code == 200) {
debugger;
// 曝光量
var exposureOption = getEchartOption("市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.totalActualCostList,data.data.totalExpoureNumList,[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var exposureOption = getEchartOption("市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.totalActualCostList,
data.data.totalExpoureNumList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxExpoureNum );
drawEchart('exposure',exposureOption);
var exposureIosOption = getEchartOption("ios端市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.iosActualCostList,data.data.iosExpoureNumList,[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var exposureIosOption = getEchartOption("ios端市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.iosActualCostList,
data.data.iosExpoureNumList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxExpoureNum);
drawEchart('exposure_ios',exposureIosOption);
var exposureAndroidOption = getEchartOption("android市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.androidActualCost,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var exposureAndroidOption = getEchartOption("android市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.androidActualCost,
data.data.androidExpoureNumList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxExpoureNum);
drawEchart('exposure_android',exposureAndroidOption);
// 激活
var activeOption = getEchartOption("市场费用/激活量",['实际费用','激活量','市场费用/激活量'],data.data.dateIdStrList,data.data.totalActualCostList,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var activeOption = getEchartOption("市场费用/激活量",
['实际费用','激活量','市场费用/激活量'],
data.data.dateIdStrList,
data.data.totalActualCostList,
data.data.totalAppActiveList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxAppActive);
drawEchart('active',activeOption);
var activeIosOption = getEchartOption("ios端市场费用/激活量",['实际费用','激活量','市场费用/激活量'],data.data.dateIdStrList,data.data.iosActualCostList,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var activeIosOption = getEchartOption("ios端市场费用/激活量",
['实际费用','激活量','市场费用/激活量'],
data.data.dateIdStrList,
data.data.iosActualCostList,
data.data.iosAppActiveList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxAppActive);
drawEchart('active_ios',activeIosOption);
var activeAndroidOption = getEchartOption("android端市场费用/激活量",['实际费用','激活量','市场费用/激活量'],data.data.dateIdStrList,data.data.androidActualCost,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var activeAndroidOption = getEchartOption("android端市场费用/激活量",
['实际费用','激活量','市场费用/激活量'],
data.data.dateIdStrList,
data.data.androidActualCost,
data.data.androidAppActiveList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxAppActive);
drawEchart('active_android',activeAndroidOption);
// 新客
var newuserOption = getEchartOption("市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.androidActualCost,data.data.totalActualCostList,[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var newuserOption = getEchartOption("市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.totalActualCostList,
data.data.totalNewUserList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxNewUdid);
drawEchart('newuser',newuserOption);
var newuserIosOption = getEchartOption("市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.iosActualCostList,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var newuserIosOption = getEchartOption("市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.iosActualCostList,
data.data.iosNewUserList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxNewUdid);
drawEchart('newuser_ios',newuserIosOption);
var newuserAndroidOption = getEchartOption("市场费用/曝光量",['实际费用','曝光量','市场费用/曝光量'],data.data.dateIdStrList,data.data.androidActualCost,[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]);
var newuserAndroidOption = getEchartOption("市场费用/曝光量",
['实际费用','曝光量','市场费用/曝光量'],
data.data.dateIdStrList,
data.data.androidActualCost,
data.data.androidNewUserList,
[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
data.data.maxActualCost,
data.data.maxNewUdid);
drawEchart('newuser_android',newuserAndroidOption);
} else {
window.self.$.messager.alert("失败", data.message, "error");
... ...