apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.63k stars 19.61k forks source link

设置`dimensions`之后,`dataZoom`中原来总动生成的缩略图消失 #9773

Closed FireBushtree closed 3 years ago

FireBushtree commented 5 years ago

General Questions

Issue Type

Issue Details

设置dimensions之后,dataZoom中原来总动生成的缩略图消失。

Expected Behavior

dataZoom中的缩略图不消失,K线图中dataZoom缩略图原为open的值,期望该缩略图的展示可配置为close的值。

Current Behavior

K线图中dataZoom的缩略图展示不可配置

Online Example

option = {
    dataset: {
        source: [
            ['2013/1/24', 2320.26,2320.26,2287.3,2362.94],
            ['2013/1/25', 2300,2291.3,2288.26,2308.38],
            ['2013/1/28', 2295.35,2346.5,2295.35,2346.92],
            ['2013/1/29', 2347.22,2358.98,2337.35,2363.8],
            ['2013/1/30', 2360.75,2382.48,2347.89,2383.76],
            ['2013/1/31', 2383.43,2385.42,2371.23,2391.82],
            ['2013/2/1', 2377.41,2419.02,2369.57,2421.15],
            ['2013/2/4', 2425.92,2428.15,2417.58,2440.38],
            ['2013/2/5', 2411,2433.13,2403.3,2437.42],
            ['2013/2/6', 2432.68,2434.48,2427.7,2441.73],
            ['2013/2/7', 2430.69,2418.53,2394.22,2433.89],
            ['2013/2/8', 2416.62,2432.4,2414.4,2443.03],
        ]
    },
    tooltip: {},
    xAxis: {type: 'category'},
    yAxis: {
        scale: true
    },
    dataZoom: [{type: 'slider'}],
    series: [{
        type: 'candlestick',
        encode: {
            x: [0],
            y: [1, 2, 3, 4],
            tooltip: [1, 2, 3, 4],
        },
        dimensions: [null, '开', '收', '低', '高']
    }]
};

Topics

Anything Else We Need to Know

Environment

deqingli commented 5 years ago

@FireBushtree What does the thumbnail mean? please provide an image/demo to explain this.

FireBushtree commented 5 years ago

if do not set the dimensions, the thumbnail will show like this: image after setting the dimensions, the thumbnail: image

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 3 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!