提交 0aeece05 authored 作者: 祖铭松's avatar 祖铭松

feat: update

上级 b18317d5
......@@ -25,16 +25,6 @@ const plotInstance = ref(null);
const generateChart = (data) => {
const ret = options.value;
// console.log(ret);
// 点,线,阴影颜色设置
let point_color = '#FF5733';
let line_color = '#39FDBE';
let shadow_color = '#D6D6D6';
if (ret.data_color_list?.length) {
point_color = ret.data_color_list[0];
line_color = ret.data_color_list[1];
shadow_color = ret.data_color_list[2];
}
plotInstance.value = Plot.plot({
width: ret.chart_width || 800,
height: ret.chart_height || 700,
......@@ -43,7 +33,8 @@ const generateChart = (data) => {
marginBottom: ret.margin_bottom || 60,
marginLeft: ret.margin_left || 60,
color: {
legend: ret.show_legend
legend: ret.show_legend,
range: ret.data_color_list || []
},
x: {
grid: ret.show_x_gridLine,
......
......@@ -43,7 +43,8 @@ const generateChart = (data) => {
marginBottom: ret.margin_bottom || 60,
marginLeft: ret.margin_left || 60,
color: {
legend: ret.show_legend
legend: ret.show_legend,
range: ret.data_color_list || []
},
// x: {
// grid: ret.show_x_gridLine,
......@@ -54,7 +55,6 @@ const generateChart = (data) => {
// domain: [-100, 100]
// },
marks: [
// Plot.frame(),
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.axisX({
......
......@@ -18,7 +18,7 @@ import BeeColonyDiagram from '../../components/BeeColonyDiagram/index.vue';
import CorrelationAnalysis from '../../components/CorrelationAnalysis/index.vue';
import ClusterHeatmap from '../../components/ClusterHeatmap/index.vue';
const chartCurrent = ref(6);
const chartCurrent = ref(0);
const chartList = shallowRef([
{ title: '线性拟合图', value: 1, comName: LinearFitting },
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论