echarts Parallel plot, axes doesn't change if the data and dimensions are modified

xvw2m8pv  于 5个月前  发布在  Echarts
关注(0)|答案(2)|浏览(69)

Version

4.9.0

https://jsfiddle.net/ramgorur/cfor274e/latest

Steps to reproduce

Just follow the JSFiddle link and run the code. No setup necessary.

What is expected?

If the parallelAxis and series are modified in option on the fly, the axes and the data should change accordingly.

What is actually happening?

Let's say I have a parallel plot of 4-dimensional data. The option is like this:

var option = { parallelAxis: null, series: null };

var myChart = echarts.init(document.getElementById("plot"));

option.parallelAxis = [
        { dim: 0, name: "f1" }, 
        { dim: 1, name: "f2" }, 
        { dim: 2, name: "f3" }, 
        { dim: 3, name: "f4" }
    ];
option.series = [{
        data: data_4d,
        lineStyle: { color: "red" },
        name: "data_4d",
        type: "parallel"
    }];

myChart.setOption(option);

Now, if I change the option with different data and axes, like this:

var opt = myChart.getOption();
opt.parallelAxes = [
    { dim: 0, name: "f1" }, 
    { dim: 1, name: "f2"}, 
    { dim: 2, name: "f3"}
];
opt.series = [{
    data: data_3d,
    lineStyle: { color: "red" },
    name: "data_3d",
    type: "parallel"
}];
myChart.setOption(opt);

The last axis still stays in the plot.

Please note: In the case of parallel and scatter plots, there are many options that can't be modified on the fly.

Not sure if this is a bug or I'm not doing it in a correct way

wlsrxk51

wlsrxk511#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list .

Have a nice day! 🍵

w46czmvw

w46czmvw2#

Hi~ I have the same problem, Please question a solution?

相关问题