更新 'app/Http/Controllers/ChartController.php'
parent
4389a710b9
commit
567ce7a3e8
|
|
@ -87,7 +87,7 @@ class ChartController extends Controller
|
|||
$riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null;
|
||||
|
||||
if ($riceShrimpIndustry) {
|
||||
$areas[] = $riceShrimpIndustry->area;
|
||||
$areas[] = bcdiv($riceShrimpIndustry->area, 1000, 2);
|
||||
$productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2);
|
||||
$productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);;
|
||||
} else {
|
||||
|
|
@ -105,7 +105,7 @@ class ChartController extends Controller
|
|||
'data' => $productValues,
|
||||
],
|
||||
[
|
||||
'name' => '面积(亩)',
|
||||
'name' => '面积(千亩)',
|
||||
'data' => $areas,
|
||||
],
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in New Issue