Files
vueecharts/demo/examples/ScatterChart.vue
Yue JIN 8be19fe2a5 chore: ESLint Flat Config (#834)
* 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
2025-05-26 11:11:23 +08:00

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>