wydsjyoung opened a new issue, #21753:
URL: https://github.com/apache/echarts/issues/21753
### What problem does this feature solve?
The current scenario involves the same set of scatter data. Each time the
setOption method is executed, the distribution position of the scatter points
in the chart changes. It is hoped that a configuration can be provided to
ensure that the coordinate positions of the scatter points do not change when
the data remains unchanged.
### What does the proposed API look like?
const grid = {
left: 80,
right: 50
};
const width = myChart.getWidth() - grid.left - grid.right;
const data = [];
for (let day = 0; day < 7; ++day) {
for (let i = 0; i < 1000; ++i) {
const y = Math.tan(i) / 2 + 7;
data.push([day, y, Math.random()]);
}
}
option = {
title: {
text: 'Scatter with Jittering'
},
grid,
xAxis: {
type: 'category',
jitter: (width / 7) * 0.8,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
max: 10,
min: 0
},
series: [
{
name: 'Sleeping Hours',
type: 'scatter',
data,
colorBy: 'data',
itemStyle: {
opacity: 0.4
}
}
]
};
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]