* Replace ->size with set::width and set::height in echarts.
This commit is contained in:
@@ -125,6 +125,8 @@ statisticBlock
|
||||
(
|
||||
set::title(array('text' => $lang->block->qastatistic->bugStatusStat, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#66a2ff', '#9ea3b0')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::tooltip(array('trigger' => 'axis')),
|
||||
set::grid(array('left' => '10px', 'top' => '50px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
@@ -151,7 +153,7 @@ statisticBlock
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,6 +24,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->doneStoryEstimateTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($doneStoryEstimate), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
set::yAxis(array('type' => 'value', 'name' => "({$config->block->storyUnitList[$config->custom->hourPoint]})", 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'), 'axisLabel' => array('showMaxLabel' => true, 'interval' => 'auto'))),
|
||||
@@ -36,7 +38,7 @@ blockPanel
|
||||
'emphasis' => array('label' => array('show' => true))
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
@@ -46,6 +48,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->storyTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($createStoryCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
@@ -70,7 +74,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
@@ -80,6 +84,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->bugTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($createBugCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
@@ -104,7 +110,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -82,6 +82,8 @@ blockPanel
|
||||
echarts
|
||||
(
|
||||
set::color(array('#2B80FF')),
|
||||
set::width('100%'),
|
||||
set::height($longBlock ? 200 : 175),
|
||||
set::grid(array('left' => '10px', 'top' => '30px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($releaseData), 'axisTick' => array('alignWithLabel' => true))),
|
||||
set::yAxis(array('type' => 'value', 'name' => $lang->number, 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'))),
|
||||
@@ -98,7 +100,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', $longBlock ? 200 : 175)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
|
||||
@@ -109,6 +109,8 @@ panel
|
||||
(
|
||||
set::title(array('text' => $lang->block->qastatistic->bugStatusStat, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#66a2ff', '#9ea3b0')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::tooltip(array('trigger' => 'axis')),
|
||||
set::grid(array('left' => '10px', 'top' => '50px', 'right' => '0', 'bottom' => '10px', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
@@ -135,7 +137,7 @@ panel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200),
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -24,6 +24,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->doneStoryEstimateTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($doneStoryEstimate), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
set::yAxis(array('type' => 'value', 'name' => "({$config->block->storyUnitList[$config->custom->hourPoint]})", 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'), 'axisLabel' => array('showMaxLabel' => true, 'interval' => 'auto'))),
|
||||
@@ -36,7 +38,7 @@ blockPanel
|
||||
'emphasis' => array('label' => array('show' => true))
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
@@ -46,6 +48,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->storyTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($createStoryCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
@@ -70,7 +74,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
@@ -80,6 +84,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->monthlyprogress->bugTrendChart, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0', 'top' => '25px', 'textStyle' => array('fontSize' => '11'))),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($createBugCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
@@ -104,7 +110,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
),
|
||||
cell
|
||||
(
|
||||
@@ -114,6 +120,8 @@ blockPanel
|
||||
(
|
||||
set::title(array('text' => $lang->block->releasestatistic->monthly, 'textStyle' => array('fontSize' => '12'))),
|
||||
set::color(array('#2B80FF')),
|
||||
set::width('100%'),
|
||||
set::height(200),
|
||||
set::grid(array('left' => '10px', 'top' => '60px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($releaseCount), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => 0), 'axisLabel' => array('fontSize' => $longBlock ? '8' : '10'))),
|
||||
set::yAxis(array('type' => 'value', 'name' => "({$lang->block->projectstatistic->unit})", 'splitLine' => array('show' => false), 'axisLine' => array('show' => true, 'color' => '#DDD'), 'axisLabel' => array('showMaxLabel' => true, 'interval' => 'auto'))),
|
||||
@@ -130,7 +138,7 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 200)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -191,6 +191,8 @@ panel
|
||||
echarts
|
||||
(
|
||||
set::color(array('#2B80FF', '#17CE97')),
|
||||
set::width('100%'),
|
||||
set::height(170),
|
||||
set::grid(array('left' => '10px', 'top' => '30px', 'right' => '0', 'bottom' => '30px', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0')),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($product->monthFinish), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => '0'))),
|
||||
@@ -215,7 +217,7 @@ panel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 170)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -19,6 +19,8 @@ blockPanel
|
||||
echarts
|
||||
(
|
||||
set::color(array('#2B80FF', '#17CE97', '#FFAF65')),
|
||||
set::width('100%'),
|
||||
set::height(170),
|
||||
set::grid(array('left' => '10px', 'top' => '30px', 'right' => '0', 'bottom' => '0', 'containLabel' => true)),
|
||||
set::legend(array('show' => true, 'right' => '0')),
|
||||
set::xAxis(array('type' => 'category', 'data' => array_keys($charts['pv']), 'splitLine' => array('show' => false), 'axisTick' => array('alignWithLabel' => true, 'interval' => '0'))),
|
||||
@@ -50,6 +52,6 @@ blockPanel
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 170),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -103,6 +103,8 @@ $generateData = function() use ($lang, $title, $cols, $executions, $chartData, $
|
||||
setID('pivotChart'),
|
||||
set::title($lang->pivot->deviationChart),
|
||||
set::shadow(false),
|
||||
set::width('100%'),
|
||||
set::height(300),
|
||||
$chartData ? null : setClass('hidden'),
|
||||
$chartData ? echarts
|
||||
(
|
||||
@@ -146,7 +148,7 @@ $generateData = function() use ($lang, $title, $cols, $executions, $chartData, $
|
||||
)
|
||||
)
|
||||
)
|
||||
)->size('100%', 300) : null
|
||||
) : null
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user