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
23
<meta charset="utf-8">
24
<script src="lib/simpleRequire.js"></script>
25
<script src="lib/config.js"></script>
26
<meta name="viewport" content="width=device-width, initial-scale=1" />
27
<link rel="stylesheet" href="lib/reset.css" />
28
<script src="lib/testHelper.js"></script>
29
<script src="tooltipTestHelper.js"></script>
47
<h1>showTip: trigger: item, seriesIndex dataIndex, on displayed symbol</h1>
48
<div class="chart" id="category"></div>
50
<h1>showTip: trigger: item, seriesIndex dataIndex, on not displayed symbol (show no tooltip)</h1>
51
<div class="chart" id="category2"></div>
53
<h1>showTip: trigger: axis, seriesIndex dataIndex</h1>
54
<div class="chart" id="category3"></div>
56
<h1>showTip: trigger: x, y</h1>
57
<div class="chart" id="category3"></div>
65
require(['echarts'], function (echarts) {
74
makeCategoryGrid(option, {
75
grid: {top: baseTop, height: height},
77
name: 'axisPointer: line\nno item trigger',
84
baseTop += height + gap;
86
var dom = document.getElementById('category');
88
dom.style.height = baseTop + 'px';
89
var chart = echarts.init(dom);
90
chart.setOption(option);
92
setTimeout(function () {
93
chart.dispatchAction({
111
require(['echarts'], function (echarts) {
120
makeCategoryGrid(option, {
121
grid: {top: baseTop, height: height},
123
name: 'axisPointer: line\nno item trigger',
124
tooltip: {show: true}
127
tooltip: {show: true}
130
baseTop += height + gap;
132
var dom = document.getElementById('category2');
134
dom.style.height = baseTop + 'px';
135
var chart = echarts.init(dom);
136
chart.setOption(option);
138
setTimeout(function () {
139
chart.dispatchAction({
156
require(['echarts'], function (echarts) {
166
makeCategoryGrid(option, {
167
grid: {top: baseTop, height: height},
169
name: 'axisPointer: line\nno item trigger',
170
tooltip: {show: true}
173
tooltip: {show: true}
176
baseTop += height + gap;
178
var dom = document.getElementById('category3');
180
dom.style.height = baseTop + 'px';
181
var chart = echarts.init(dom);
182
chart.setOption(option);
184
setTimeout(function () {
185
chart.dispatchAction({
b'\\ No newline at end of file'