12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import ChartPie5 from '../../../src/chart/pie/ChartPie5/ChartPie5.js';
- import Animation from "../../../src/chart/commonOptions/animation";
- import Title from "../../../src/chart/commonOptions/title";
-
- let chart=new ChartPie5(document.getElementsByClassName('c1')[0],{});
-
- window.addEventListener("resize",()=>{
- chart.resize();
- });
-
- setTimeout(()=>{
- // console.log(555)
- // chart.setOption(opt)
- },3000)
-
- const opt = {
- bg:{
- backgroundColor:"#0b162f"
- },
- animation: Animation.option,
- title: {},
- shape: {
- center:{
- x:'50%',
- y:'50%',
- },
- bgCircle:{
- color:'#012d78',
- lineWidth:10
- },
- outCircle:{
- color:'#01baff'
- },
- titleStyle:{
- show:true,
- fontWeight:'normal',
- color:'#01baff',
- fontSize:16,
- fontY:59
- },
- detailStyle:{
- show:true,
- fontWeight:'normal',
- color:'#ffffff',
- fontSize:30,
- fontY:30,
- numShow:0
- }
- },
- series:[{
- name: '占比一',
- value: 5
- }]
-
- };
|