3
Licensed to the Apache Software Foundation (ASF) under one
4
or more contributor license agreements. See the NOTICE file
5
distributed with this work for additional information
6
regarding copyright ownership. The ASF licenses this file
7
to you under the Apache License, Version 2.0 (the
8
"License"); you may not use this file except in compliance
9
with the License. You may obtain a copy of the License at
11
http://www.apache.org/licenses/LICENSE-2.0
13
Unless required by applicable law or agreed to in writing,
14
software distributed under the License is distributed on an
15
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
KIND, either express or implied. See the License for the
17
specific language governing permissions and limitations
24
<meta charset="utf-8">
25
<script src="lib/simpleRequire.js"></script>
26
<script src="lib/config.js"></script>
27
<script src="lib/jquery.min.js"></script>
28
<script src="lib/facePrint.js"></script>
29
<script src="lib/testHelper.js"></script>
30
<meta name="viewport" content="width=device-width, initial-scale=1" />
31
<link rel="stylesheet" href="lib/reset.css">
50
宽度大于600时显示方块,当前宽度:<span id='wid'></span>
60
var groupCategories = [];
84
var myChart = echarts.init(document.getElementById('main'));
85
myChart.setOption(option);
87
setTimeout(function () {
88
// 删除上例中定义的 'text1' 元素。
96
// myChart.setOption({
121
document.getElementById('wid').innerText = window.innerWidth;
125
window.onresize = function() {
126
document.getElementById('wid').innerText = window.innerWidth;
127
// var option = myChart.getOption();
130
if (window.innerWidth < 600) {
132
option.graphic = { // 删除上例中定义的 'text1' 元素。
156
myChart.setOption(option);
159
// window.onresize();
b'\\ No newline at end of file'