You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/05/06 10:35:47 UTC
[GitHub] [echarts] abitwhy opened a new issue, #16989: [Feature] Realtime Axis
abitwhy opened a new issue, #16989:
URL: https://github.com/apache/echarts/issues/16989
### What problem does this feature solve?
The axis-category's label can be configured with realtime effect.
### What does the proposed API look like?
```js
const len = 10;
const randomValue = () => +(Math.random() * len + 5).toFixed(1);
const categories = Array(len)
.fill(0)
.map((e, i) => i);
const data = categories.map(() => randomValue());
option = {
title: {
text: 'Realtime Axis',
subtext: 'Dynamic Data (widthout realtime axis)'
},
grid: { top: '15%' },
xAxis: {
/* Demand (not exist) */
// label: {
// realtime: true
// },
type: 'category',
data: categories
},
yAxis: {
name: 'Order',
max: 18,
min: 0
},
series: {
/* Existing (realtime bound with sort)*/
// realtimeSort: true,
name: 'Dynamic Bar',
type: 'bar',
data
}
};
let count = len + 1;
setInterval(function () {
data.shift();
data.push(randomValue());
categories.shift();
categories.push(count++);
myChart.setOption({
xAxis: {
data: categories
},
series: {
data
}
});
}, 2100);
```
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] abitwhy commented on issue #16989: [Feature] Realtime Label of Categary Axis
Posted by GitBox <gi...@apache.org>.
abitwhy commented on issue #16989:
URL: https://github.com/apache/echarts/issues/16989#issuecomment-1120802607
Not about sorting at all. The use case is to turn pages smoothly to display data. ECharts already has the function of [turning pages](https://echarts.apache.org/handbook/en/how-to/data/dynamic-data/#:~:text=is%20the%20effect%3A-,Dynamic%20Update,-ECharts%20was%20driven), and has the ability to [display labels smoothly](https://echarts.apache.org/handbook/en/how-to/chart-types/bar/bar-race#:~:text=frequency%20of%20animationDurationUpdate-,Demo,-A%20complete%20demo). So why not open this ability?
By the way, [the above code](https://github.com/apache/echarts/issues/16989#:~:text=What%20does%20the%20proposed%20API%20look%20like%3F) is a simplified example.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Feature] Realtime Label of Categary Axis [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16989:
URL: https://github.com/apache/echarts/issues/16989#issuecomment-2101465701
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.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Feature] Realtime Label of Categary Axis [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #16989:
URL: https://github.com/apache/echarts/issues/16989#issuecomment-2116175530
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!
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Feature] Realtime Label of Categary Axis [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #16989: [Feature] Realtime Label of Categary Axis
URL: https://github.com/apache/echarts/issues/16989
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Ovilia commented on issue #16989: [Feature] Realtime Label of Categary Axis
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #16989:
URL: https://github.com/apache/echarts/issues/16989#issuecomment-1120147191
`realtimeSort` means to sort with the axis's value. Do you wish to sort category axis in dictionary order? Can you give an example about the user-case?
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org