|
1 | 1 | <template>
|
2 | 2 | <main>
|
3 | 3 | <!-- <v-chart
|
4 |
| - class="echarts" id="logo" :option="logo" :init-options="initOptions" autoresize /> --> |
5 |
| - <h1><a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a></h1> |
| 4 | + class="echarts" id="logo" :option="logo" :init-options="initOptions" autoresize />--> |
| 5 | + <h1> |
| 6 | + <a href="https://github.com/ecomfe/vue-echarts">Vue-ECharts</a> |
| 7 | + </h1> |
6 | 8 | <p class="desc">
|
7 |
| - Vue.js component for Apache ECharts. (<a |
8 |
| - href="https://github.com/ecomfe/vue-echarts#readme" |
9 |
| - >docs</a |
10 |
| - >) |
| 9 | + Vue.js component for Apache ECharts. ( |
| 10 | + <a href="https://github.com/ecomfe/vue-echarts#readme">docs</a>) |
11 | 11 | </p>
|
12 | 12 |
|
13 | 13 | <h2 id="bar">
|
14 |
| - <a href="#bar" |
15 |
| - >Bar chart <small>(with async data & custom theme)</small></a |
16 |
| - > |
| 14 | + <a href="#bar"> |
| 15 | + Bar chart |
| 16 | + <small>(with async data & custom theme)</small> |
| 17 | + </a> |
17 | 18 | <button
|
18 | 19 | :class="{
|
19 | 20 | round: true,
|
|
37 | 38 | @click="handleClick"
|
38 | 39 | />
|
39 | 40 | </figure>
|
40 |
| - <p v-if="seconds <= 0"><small>Loaded.</small></p> |
| 41 | + <p v-if="seconds <= 0"> |
| 42 | + <small>Loaded.</small> |
| 43 | + </p> |
41 | 44 | <p v-else>
|
42 |
| - <small |
43 |
| - >Data coming in <b>{{ seconds }}</b> second{{ |
44 |
| - seconds > 1 ? "s" : "" |
45 |
| - }}...</small |
46 |
| - > |
| 45 | + <small> |
| 46 | + Data coming in |
| 47 | + <b>{{ seconds }}</b> |
| 48 | + second{{ seconds > 1 ? "s" : "" }}... |
| 49 | + </small> |
| 50 | + </p> |
| 51 | + <p> |
| 52 | + <button @click="refresh" :disabled="seconds > 0">Refresh</button> |
47 | 53 | </p>
|
48 |
| - <p><button @click="refresh" :disabled="seconds > 0">Refresh</button></p> |
49 | 54 | </section>
|
50 | 55 |
|
51 | 56 | <h2 id="pie">
|
52 |
| - <a href="#pie">Pie chart <small>(with action dispatch)</small></a> |
| 57 | + <a href="#pie"> |
| 58 | + Pie chart |
| 59 | + <small>(with action dispatch)</small> |
| 60 | + </a> |
53 | 61 | <button
|
54 | 62 | :class="{
|
55 | 63 | round: true,
|
|
71 | 79 | </section>
|
72 | 80 |
|
73 | 81 | <h2 id="polar">
|
74 |
| - <a href="#polar">Polar plot <small>(with built-in theme)</small></a> |
| 82 | + <a href="#polar"> |
| 83 | + Polar plot |
| 84 | + <small>(with built-in theme)</small> |
| 85 | + </a> |
75 | 86 | <button
|
76 | 87 | :class="{
|
77 | 88 | round: true,
|
|
100 | 111 | </section>
|
101 | 112 |
|
102 | 113 | <h2 id="scatter">
|
103 |
| - <a href="#scatter">Scatter plot <small>(with gradient)</small></a> |
| 114 | + <a href="#scatter"> |
| 115 | + Scatter plot |
| 116 | + <small>(with gradient)</small> |
| 117 | + </a> |
104 | 118 | <button
|
105 | 119 | :class="{
|
106 | 120 | round: true,
|
|
117 | 131 | </section>
|
118 | 132 |
|
119 | 133 | <h2 id="map">
|
120 |
| - <a href="#map">Map <small>(with GeoJSON & image converter)</small></a> |
| 134 | + <a href="#map"> |
| 135 | + Map |
| 136 | + <small>(with GeoJSON & image converter)</small> |
| 137 | + </a> |
121 | 138 | <button
|
122 | 139 | :class="{
|
123 | 140 | round: true,
|
|
136 | 153 | autoresize
|
137 | 154 | />
|
138 | 155 | </figure>
|
139 |
| - <p><button @click="convert">Convert to image</button></p> |
| 156 | + <p> |
| 157 | + <button @click="convert">Convert to image</button> |
| 158 | + </p> |
140 | 159 | </section>
|
141 | 160 |
|
142 | 161 | <!-- <h2 id="radar">
|
|
166 | 185 | <input id="async" type="checkbox" v-model="asyncCount" />
|
167 | 186 | <label for="async">Async</label>
|
168 | 187 | </p>
|
169 |
| - </section> --> |
| 188 | + </section>--> |
170 | 189 |
|
171 | 190 | <h2 id="connect">
|
172 | 191 | <a href="#connect">Connectable charts</a>
|
|
219 | 238 | </h2>
|
220 | 239 | <section v-if="expand.flight">
|
221 | 240 | <p>
|
222 |
| - <small |
223 |
| - >You may use <code>manual-update</code> prop for performance critical |
224 |
| - use cases.</small |
225 |
| - > |
| 241 | + <small> |
| 242 | + You may use |
| 243 | + <code>manual-update</code> prop for performance critical use cases. |
| 244 | + </small> |
| 245 | + </p> |
| 246 | + <p> |
| 247 | + <button :disabled="flightLoaded" @click="loadFlights">Load</button> |
226 | 248 | </p>
|
227 |
| - <p><button :disabled="flightLoaded" @click="loadFlights">Load</button></p> |
228 | 249 | <figure style="background-color: #003">
|
229 | 250 | <v-chart
|
230 | 251 | ref="flight"
|
|
238 | 259 | </section>
|
239 | 260 |
|
240 | 261 | <footer>
|
241 |
| - <a href="//github.com/Justineo">@Justineo</a>|<a |
242 |
| - href="//github.com/ecomfe/vue-echarts/blob/master/LICENSE" |
| 262 | + <a href="//github.com/Justineo">@Justineo</a>| |
| 263 | + <a href="//github.com/ecomfe/vue-echarts/blob/master/LICENSE" |
243 | 264 | >MIT License</a
|
244 |
| - >|<a href="//github.com/ecomfe/vue-echarts">View on GitHub</a> |
| 265 | + >| |
| 266 | + <a href="//github.com/ecomfe/vue-echarts">View on GitHub</a> |
245 | 267 | </footer>
|
246 | 268 |
|
247 | 269 | <aside :class="{ modal: true, open }" @click="open = false">
|
|
0 commit comments