You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while x value >0.5, heigth of bar is 0.5,and it use 0.5 to sort ,and sort result is wrong. it should use true value of x
Expected Behavior
echarts.js:4446944469varorderMapping_1=function(idx){44470varel=data.getItemGraphicEl(idx);44471if(option.use_true_value==1){// add some code here44472varv=data._store._chunks[0][idx];// add some code here44473returnv;// add some code here44474}// add some code here44475varshape=el&&el.shape;44476returnshape&&// The result should be consistent with the initial sort by data value.44477// Do not support the case that both positive and negative exist.44478Math.abs(baseAxis.isHorizontal() ? shape.height : shape.width)// If data is NaN, shape .xxx may be NaN, so use || 0 here in case44479||0;
@liuweijiaCHN It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] The dynamic sorting graph of bar will sort the data randomly when the value exceeds max or min
liuweijiaCHN
changed the title
[Bug] bar的动态排序图对于数值超过max或者min时的数据排序会随机
[Bug] realtime sort of bar graph will sort randomly for data that exceeds [min,max].
Feb 2, 2024
liuweijiaCHN
changed the title
[Bug] realtime sort of bar graph will sort randomly for data that exceeds [min,max].
[Bug] realtime sort of bar chart will sort randomly for data that exceeds [min,max].
Feb 2, 2024
thank you very much.
I will follow this issue and see your reply frequently.
How can I use https://cdn_host/5.4.3/echart.js and modify its function by using 'extend'/override or 'modify its source js file'.
because cdn file is downloaded very fast. so I can solve the problem quickly and downloading of web page is also quickly
var chartDom = document.getElementById('tmgraph');
echarts.extendChartView() ????? // extend echarts. BarView.prototype._enableRealtimeSort , modify the orderMapping_1 function ??
var myChart = echarts.init(chartDom); // then init it
Version
5.4.3
Link to Minimal Reproduction
https://cdn.staticfile.org/echarts/5.4.3/echarts.js
Steps to Reproduce
Current Behavior
while x value >0.5, heigth of bar is 0.5,and it use 0.5 to sort ,and sort result is wrong. it should use true value of x
Expected Behavior
Environment
Any additional comments?
series.realtimeSort 加一个属性,use_true_value:1 ,使用原始真值来排序。
The text was updated successfully, but these errors were encountered: