Browse Source

[饼图第一版]

master
chenjingyu 4 years ago
parent
commit
fcd4e0ab41
  1. 5
      src/app/statistic-analysis/state/page-one/page-one.component.html
  2. 1
      src/app/statistic-analysis/state/page-one/page-one.component.scss
  3. 3
      src/app/statistic-analysis/state/page-one/page-one.component.ts

5
src/app/statistic-analysis/state/page-one/page-one.component.html

@ -4,11 +4,12 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-01 15:24:39 * @Date: 2020-09-01 15:24:39
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-01 16:17:40 * @LastEditTime: 2020-09-02 14:22:10
--> -->
<body> <body>
<!--饼状图-->
<div id="indexBzt" style="width: 100%;height: 100%;" ></div> <div id="indexBzt" style="width: 100%;height: 100%;" ></div>
</body> </body>
<!--饼状图-->

1
src/app/statistic-analysis/state/page-one/page-one.component.scss

@ -4,6 +4,5 @@
span{ span{
font-size: 25px; font-size: 25px;
text-align: center; text-align: center;
color: #000000;
} }
} }

3
src/app/statistic-analysis/state/page-one/page-one.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-09-01 15:24:39 * @Date: 2020-09-01 15:24:39
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2020-09-02 13:49:38 * @LastEditTime: 2020-09-02 14:21:52
*/ */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
//import * as echarts from ''; //import * as echarts from '';
@ -51,6 +51,7 @@ export class PageOneComponent implements OnInit {
backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度 backgroundColor:'rgba(255,255,255,1)',//通过设置rgba调节背景颜色与透明度
borderWidth:'1', borderWidth:'1',
borderRadius :'0' borderRadius :'0'
}, },
legend: { legend: {
orient: 'vertical', orient: 'vertical',

Loading…
Cancel
Save