123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- import ChartBar from '../../../src/chart/center/ChartCenterChinaMap1/ChartCenterChinaMap1.js';
- import dotData from "./dot";
- const consoleWarn = window.console.warn;
- window.console.warn = function() {
- const string = arguments[0];
- const filterStrings = [
- 'is not power of two',
- 'image is too big',
- 'marked for update',
- ];
-
- const shouldBeFiltered = filterStrings.some(string => (
- arguments[0].includes('THREE') && arguments[0].includes(string)
- ));
- if (shouldBeFiltered) {
-
-
-
-
- } else {
-
- consoleWarn.apply(null, arguments);
- }
- };
- import dotData1 from "./dot";
-
-
- let bar = new ChartBar(document.getElementsByClassName('c1')[0], {});
- window.addEventListener('resize', () => {
- bar.resize();
- });
- let dd=JSON.parse(JSON.stringify(dotData));
- let data=dd[0].data.map(v=>{
- delete v["type"];
- return v;
- });
- console.log(data);
- let mapOpt=[{
- type: "map",
- id: "map",
- style: {
- backgroundColor: '#0f3c6d',
- geoColor: '#366efb',
- textShow: true,
- textColor: '#63e1e3',
- textOpacity: "100%",
- borderColor: '#63e1e3',
- cameraAngle: 15,
- "topStyle": {
- "left": "2%",
- "bottom": "35%"
- }
- }
- },{
- "type": "area",
- "id": "area2",
- "name": "省份数据",
- "style": {
- "show":true,
- "maxValue": 10,
- "color": ["#022bfc", "#02f3fc", "#fcf902", "#fc3702"],
- "opacity": 0.4,
- "topStyle":{
- "left":"2%",
- "bottom":"5%"
- }
- },
- "data": []
- },{
- "type": "area",
- "id": "area3",
- "name": "省份数据",
- "style": {
- "show":true,
- "maxValue": 10,
- "color": ["#022bfc", "#02f3fc", "#fcf902", "#fc3702"],
- "opacity": 0.4,
- "topStyle":{
- "left":"2%",
- "bottom":"5%"
- }
- },
- "data": [
-
-
- ]
- }];
-
-
-
-
- setTimeout(() => {
- bar.setOption(mapOpt);
- }, 5000);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|