echarts [Bug] Sampling Threshold not working

rt4zxlrg  于 2022-10-20  发布在  Echarts
关注(0)|答案(1)|浏览(300)

Version

5.4.0

  • No response*

Steps to Reproduce

{
            yAxisIndex: 0,
            sampling: 'lttb',
            large: true,
            largeThreshold: 100,
            name: 'Pressure In',
            type: 'line',
            smooth: true,
            symbol: 'none',
            encode: {
                x: 'Time',
                y: 'Bar',
                itemName: 'Time',
                tooltip: ['Bar']
            },
            data: pressureIn
        },

Current Behavior

I want to lower the threshold of the chart like in this chart https://www.base.is/flot/ using sampling, large and largeThreshold which I assume that those are the methods that I need for doing that, but it does not have any influence over my code.

Expected Behavior

I expect the lines to be much more smooth when using sampling, from this

I want it to be something like this

Environment

- OS: MacOS
- Browser:Chrome
- Framework: React

Any additional comments?

  • No response*
jhiyze9q

jhiyze9q1#

@Tudor16c

Could you please attach your code snapshot.

相关问题