mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00

* chore: eslint flat config * chore: format * update according to review * chore: remove prettier config and format * fix: move handler to script to bypass eslint * chore: config eslint for lang=js block * docs: add surrounding empty lines for code block * chore: also minify css in csp build * chore: publint
24 lines
614 B
Vue
24 lines
614 B
Vue
<script setup>
|
|
import { use } from "echarts/core";
|
|
import { ScatterChart } from "echarts/charts";
|
|
import {
|
|
GridComponent,
|
|
TitleComponent,
|
|
LegendComponent,
|
|
} from "echarts/components";
|
|
import { shallowRef } from "vue";
|
|
import VChart from "../../src/ECharts";
|
|
import VExample from "./Example.vue";
|
|
import getData from "../data/scatter";
|
|
|
|
use([ScatterChart, GridComponent, TitleComponent, LegendComponent]);
|
|
|
|
const option = shallowRef(getData());
|
|
</script>
|
|
|
|
<template>
|
|
<v-example id="scatter" title="Scatter plot" desc="(with gradient)">
|
|
<v-chart :option="option" autoresize />
|
|
</v-example>
|
|
</template>
|