|
|
@@ -7,7 +7,7 @@ import ReactECharts from 'echarts-for-react'; |
|
|
|
const EnergyCostChart = (props) => { |
|
|
|
const options = { |
|
|
|
color: ['#FFD160', '#12FFF5', '#2760FF'], |
|
|
|
grid: { top: 32, right: 12, bottom: 20, left: 48 }, |
|
|
|
grid: { top: 26, right: 12, bottom: 18, left: 48 }, |
|
|
|
xAxis: { |
|
|
|
type: 'category', |
|
|
|
data: Array(7) |
|
|
@@ -99,6 +99,29 @@ const EnergyCostChart = (props) => { |
|
|
|
<li>总量</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className={cls.radioGroupWrapper}> |
|
|
|
<Radio.Group |
|
|
|
defaultValue="restHeat" |
|
|
|
buttonStyle="solid" |
|
|
|
className={cls.radioGroup} |
|
|
|
> |
|
|
|
<Radio.Button value="restHeat" className="radio-group__item"> |
|
|
|
余热发电 |
|
|
|
</Radio.Button> |
|
|
|
<Radio.Button value="waterCost" className="radio-group__item"> |
|
|
|
水耗能 |
|
|
|
</Radio.Button> |
|
|
|
<Radio.Button value="elecCost" className="radio-group__item"> |
|
|
|
电耗能 |
|
|
|
</Radio.Button> |
|
|
|
<Radio.Button value="gasCost" className="radio-group__item"> |
|
|
|
天然气 |
|
|
|
</Radio.Button> |
|
|
|
<Radio.Button value="gasiiCost" className="radio-group__item"> |
|
|
|
焦炉煤气 |
|
|
|
</Radio.Button> |
|
|
|
</Radio.Group> |
|
|
|
<Radio.Group |
|
|
|
defaultValue="week" |
|
|
|
buttonStyle="solid" |
|
|
@@ -119,7 +142,7 @@ const EnergyCostChart = (props) => { |
|
|
|
</Radio.Group> |
|
|
|
</div> |
|
|
|
<div className="flex-1"> |
|
|
|
<ReactECharts option={options} style={{ height: '180px' }} /> |
|
|
|
<ReactECharts option={options} style={{ height: '145px' }} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|