You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "nitxs (via GitHub)" <gi...@apache.org> on 2024/01/08 06:32:16 UTC
[I] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
nitxs opened a new issue, #19477:
URL: https://github.com/apache/echarts/issues/19477
### What problem does this feature solve?
在echarts 5.1.2版本中,我需要开发K线图表,图表中除了显示蜡烛图外,还需要显示均线,同时根据功能要求,要如同股票交易软件中蜡烛图页面显示的一样,在左上角固定位置显示MA5、MA10、M20,并根据用户鼠标滑动,更新显示当前MA均线N日的值,请问能否增加这样的功能?或者在5.1.2版本中,能否有类似的实现?

### What does the proposed API look like?
graphic.style.text 值可设为回调函数,由tooltip触发时联动触发,获取tooltip.formatter滑动时获取的当前节点的所有数据
--
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
Re: [I] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "nitxs (via GitHub)" <gi...@apache.org>.
nitxs commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1882108642
> @nitxs 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
Tooltip 我已经设置了开盘价、收盘价、最低价、最高价,需求是这几个单独一个框显示,而MA值是要放在左上角固定显示,也就是我可能需要设置两个tooltip,该如何实现呢?

我现在选择在graphic中设置显示MA均线值,如果可能想请问下,如何在鼠标滑动时也动态更新graphic设置的MA值?

另外,我用的echarts版本是5.1.2
我现在的页面

--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-4320570846
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1881574388
see [official example](https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush)
Tooltip position could be set as absolute (constant), like ```position :{left: 10, top: 30}```. Then inside, MA values could be positioned one after another in a line.
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "Xiaobaishushu25 (via GitHub)" <gi...@apache.org>.
Xiaobaishushu25 commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-2077694547
> see [official example](https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush)
> Tooltip position could be set as absolute (constant), like `position :{left: 10, top: 30}`. Then inside, MA values could be positioned one after another in a line.
echarts目前好像不支持同时设置两个tooltip,顺便问问你有开发画线功能吗,我也在搞蜡烛图
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19477: 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能
URL: https://github.com/apache/echarts/issues/19477
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "nitxs (via GitHub)" <gi...@apache.org>.
nitxs commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1885987379
> see [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush&code=MYewdgzgLgBArgBwMIgDYgE4wLwwOQDEADEQCYCGAzMHgNwBQokspIA7mCulroQKbASJOvQBmcMMCgBLcDAgJU0qABFyUcgAoM5Nmo0BKGAG96MGKj6xg6vgHNMAT33kcMANoBdBucuwAbuSocHwQbl4-FlYw_mhwALah4d5mMKKYMJp-MNJuRLQ5MAA8MDp66uQAdJZgdlAAFgXSANTNRqbm5jZQ9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1YzAKLfSNk2B2QcmEJyI8a0hqOTJSw0AbWnJuTaFsAimQk2UHweIe0Dqt1YadcRyAj0iJOtwIg8IOGcFPYwkaY1C7wnznwUQZrSBnpgPe4yhdL3wGcq-1epAJWRP2UOkd7kpReREYc_AK9I0iJucKUU4oejSk0EQ25BheXxG7nbfNWM4N7sOn3VGC1gDKEcOAyoHlgN7KDWBxI-lfLBWg3O2DZqV3ZKQ2KSUMoNLKgqFhrpOHlJ_02jPGpBGzVEYPVjcwHFs4UaozR3ZMD6PHWHYxiDQVZ3luXhxhDXGgjId45oIKAnDDYdw2J_Dx1CP7WIxsnWZGlOA2o7RtTg6NPgY5mFXTKS4OcY0GSYzPHUMyjChZ8gQnG0ibwxJkR9n91CtI4p_aymPOyNA95rTeAABqbJ_P6SziZERhbY1KpJsyoeFWViGeC7clsnJoGJ3xOrdqYrUiUWorRSoy0FDqGAPUKUGFwCaHkjBvAD9hjaI1E3ftZlUHTfqPeNj-nV4bxwaATqV4-IXiXkFMJCIiC
-OOwFbyh3TsnYRDpxlsTB4xpHuAyK-IZHq15NsIAA)
>
> 📌 please close issue if problem solved.
thanks,但你给出的demo并没有完全解决我的问题,我的问题是既要显示一个tooltip来显示【开盘价、收盘价、最低价、最高价】,还要一个额外的tooltip来固定在左上角显示MA均线值,也就是说,需要两个tooltip来同时显示,我用的echarts版本是5.1.2。
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "nitxs (via GitHub)" <gi...@apache.org>.
nitxs commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1882081251
Tooltip 我已经设置了开盘价、收盘价、最低价、最高价,需求是这几个单独一个框显示,而MA值是要放在左上角固定显示,也就是我可能需要设置两个tooltip,该如何实现呢?
`tooltip: {
trigger: 'axis',
padding: [0,4], // 提示框 上下的内边距为 0,左右的内边距为 4
position: function (pos, params, el, elRect, size) {
var obj = { top: 8 };
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 0;
return obj;
},
formatter:(params, ticket, callback)=> {
console.log(params)
// [开盘价,收盘价,最低价,最高价]
let param = params[0]
const tooltipText = `${param.name}\n开${param.data[1]}\n收${param.data[2]}\n低${param.data[3]}\n高${param.data[4]}`
return tooltipText
},
axisPointer: {
animation: false,
type: 'cross',
lineStyle: {
color: '#376df4',
width: 2,
opacity: 1
}
}
},`
我现在选择在graphic中设置显示MA均线值,如果可能想请问下,如何在鼠标滑动时也动态更新graphic设置的MA值?
`graphic: [
{
id: 'graphicMaIdA',
type: 'text',
left: 10, // 右边距
top: 3, // 底边距
style: {
text: 'MA5: MA10: MA20: MA40: MA60:',
fill: '#000', // 字体颜色
font: '10px Arial', // 字体样式
lineHeight: 18, // 行高
width: 150, // 文本宽度,超出宽度会换行
// overflow: 'truncate', // 超出宽度截断显示
},
},
],`
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1880448938
@nitxs 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
Add a function to the K-line chart similar to the function of displaying the moving average MA at a fixed position in the upper left corner of stock trading software.
**BODY**
### What problem does this feature solve?
In echarts version 5.1.2, I need to develop a K-line chart, in addition to displaying candlesticks, I also need to display moving averages, and at the same time, according to the functional requirements, as shown on the candlestick chart page in the stock trading software, MA5, MA10, M20 should be displayed in a fixed position in the upper left corner, and according to the user's mouse slide, update the value of the current MA moving average for N days, can you add such a function? Or in version 5.1.2, can there be a similar implementation?

### What does the proposed API look like?
The graphic.style.text value can be set as a callback function, which is triggered by the tooltip trigger linkage to get all the data of the current node obtained when the tooltip.formatter is sliding
</details>
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1885176683
see [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush&code=MYewdgzgLgBArgBwMIgDYgE4wLwwOQDEADEQCYCGAzMHgNwBQokspIA7mCulroQKbASJOvQBmcMMCgBLcDAgJU0qABFyUcgAoM5Nmo0BKGAG96MGKj6xg6vgHNMAT33kcMANoBdBucuwAbuSocHwQbl4-FlYw_mhwALah4d5mMKKYMJp-MNJuRLQ5MAA8MDp66uQAdJZgdlAAFgXSANTNRqbm5jZQ9k4ulQhwEPXaui7u0p6VCkrAfJpEADQwAIwG7kSeBpHmgcGhA0MjZeOT26m7cYkQh8OaE8snFROe7gAsno9jz5MbnjAAPlK3w0L3cK3-AH5VjAAFwwAC0EPO5gAvqkMFY4BgwCYLjBur0MM4KvDCQ5iS5Fvi9iEIPDaaFqZ0YldQgy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N7sOn3VGC1gDKEcOAyoHlgN7KDWBxI-lfLBWg3O2DZqV3ZKQ2KSUMoNLKgqFhrpOHlJ_02jPGpBGzVEYPVjcwHFs4UaozR3ZMD6PHWHYxiDQVZ3luXhxhDXGgjId45oIKAnDDYdw2J_Dx1CP7WIxsnWZGlOA2o7RtTg6NPgY5mFXTKS4OcY0GSYzPHUMyjChZ8gQnG0ibwxJkR9n91CtI4p_aymPOyNA95rTeAABqbJ_P6SziZERhbY1KpJsyoeFWViGeC7clsnJoGJ3xOrdqYrUiUWorRSoy0FDqGAPUKUGFwCaHkjBvAD9hjaI1E3ftZlUHTfqPeNj-nV4bxwaATqV4-IXiXkFMJCIiC-O
OwFbyh3TsnYRDpxlsTB4xpHuAyK-IZHq15NsIAA)
📌 please close issue if problem solved.
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "nitxs (via GitHub)" <gi...@apache.org>.
nitxs commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-1882088077
> see [official example](https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush) Tooltip position could be set as absolute (constant), like `position :{left: 10, top: 30}`. Then inside, MA values could be positioned one after another in a line.
Tooltip 我已经设置了开盘价、收盘价、最低价、最高价,需求是这几个单独一个框显示,而MA值是要放在左上角固定显示,也就是我可能需要设置两个tooltip,该如何实现呢?

我现在选择在graphic中设置显示MA均线值,如果可能想请问下,如何在鼠标滑动时也动态更新graphic设置的MA值?

另外,我用的echarts版本是5.1.2
--
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] 为K线图添加类似股票交易软件中左上角固定位置显示均线MA的功能 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19477:
URL: https://github.com/apache/echarts/issues/19477#issuecomment-4364739775
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