You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Traumflug (via GitHub)" <gi...@apache.org> on 2023/05/28 23:35:21 UTC

[GitHub] [echarts] Traumflug opened a new issue, #18675: [Bug] Candlestick chart doesn't mix with xAxis type 'time'

Traumflug opened a new issue, #18675:
URL: https://github.com/apache/echarts/issues/18675

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?version=5.4.2&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5JALZW0A0J6eAxgIYA2NZAE4BXKm3QBfcbHI58RVKVhc-AsCLEkpJMMGC9IIBeyEQA5maqC63XHlYnb-AArAI0MFeNL0FanU5BYDx7E21JaTwrCCpCWABtE0UfPwFaHmgAE348SE4AawcfWEzuMG4iROL0eIBGADZagA4m2oBWeoAGbu6WWHaAFgBOeoA6JvqhvsH6gCZRxum2ga7Rgdalts7a8YGAXWliusaW2qHZnt7-5fqAdlGAZiWBtqbRztnngYfR2ufboajWazA4mJTHZpNYFNS6dL5vB4DZ6zMbnZ61eZtZ71VGg6oJBqQlEDWHItqjW63MlrP7XAYY0ZYunLR70vHVCEtB6wq6DNrzTpNZ4PQEPWq0wZnCmdKbMwEA9lHQlch5dS5fMYy2WDB5vAbDYXzWpI5kDIH1RU-TlNB63C7qukPH4DT50lFApra5azcltL36t63T2W8HKpokmEOwb095e3U_EYStq2zoU26dJnRn4-kOka36klR5adH5zJa6wEo8v1N7G56CxlnXM1MMre09cue95J1UIuM1x5xoap43NgknYftjvXVU7drll5AoY9_U08tDH4YoZjznDjqkmdBxkm9pi8k18u1VO3E_JgGMi2HK3K4fnA-n22PJ7XWaroU_z9ZipGdPzuHcXwxSNp3aFFAS9FE53qJZZgeeZzng24dhzJ9QwnBpC2g_l0zWeDf1GIZ_xg2pS0zIisLacCJynQjZgaR5Fh_YFyIBWjWMxZCHnJIZMMY5pzlVd9-TYtok2BHZk2QhleOGRlRM9IDm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 fPEuxksuyUONpqThd89QtJnA2CYtiXhoMCck8MOstYWMrJeAUII-nDAKdyKZI8soAkdlhOMSkZm4T8TJCuKdUxwKHmMW2xsQ4n22IyXpSNLThFgHsFAEgADcQA
   
   ### Steps to Reproduce
   
   No further action required, just look at what gets drawn.
   
   - Perhaps it's required to make the browser window a bit more narrow to make the drawing space small enough, my browser window is ~1000 pixels wide.
   - Key of the given code is a data series of type 'candlestick' in combination with a xAxis type 'time'.
   - Sample data is actually real world data, hourly candles of the German DAX index in April 2021.
   - Reason to use xAxis type 'time' is the brilliant way this type zooms date/time values. AFAIK, repeating this with an xAxis type 'category' would require a whole lot of code, if possible at all.
   
   ### Current Behavior
   
   - [ ] Candlesticks overlap each other.
   - [ ] Huge gaps between groups of candlesticks.
   
   ### Expected Behavior
   
   - Candlesticks never overlap.
   - Candlesticks evenly distributed, even if there are gaps in their appearance in time. Just like ECharts' candlestick demos look like.
   
   ### Environment
   
   ```markdown
   - OS: Debian 12
   - Browser: Firefox 102 ESR
   - Framework: (no framework)
   ```
   
   
   ### Any additional comments?
   
   Yes, I'm aware that none of the candlestick demos uses this type of xAxis. And they're all not exactly great at zooming horizontally.


-- 
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] Traumflug commented on issue #18675: [Bug] Candlestick chart doesn't mix with xAxis type 'time'

Posted by "Traumflug (via GitHub)" <gi...@apache.org>.
Traumflug commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-1569296707

   It's about xAxis type 'time'. And I don't complain about anything. My app is running better than the demos already, I ended up writing a couple of formatters. An xAxis type 'time' could do it even better, right now that's not an option.
   
   I just try to be a kind Open Source user and report bugs when I run across them. If you consider overlapping candlesticks to be expected/wanted behavior, please say so, then I can close this issue. If you don't like bugs being reported, please say so as well, it saves me a lot of time.


-- 
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] Traumflug commented on issue #18675: [Bug] Candlestick chart doesn't mix with xAxis type 'time'

Posted by "Traumflug (via GitHub)" <gi...@apache.org>.
Traumflug commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-1568527323

   > You requirements will be satisfied only through xAxis type 'category'.
   
   I mean I wrote into the bug report that I'm aware of these demos :-)
   
   These demos distribute candlesticks evenly, but are lousy at displaying date and time labels on that axis. xAxis type 'time' does this an order of magnitude better: displaying year or month or day or clock time depending on zoom level and distributing shown labels not evenly distributed, but marking important ones, like first day of a month or first candle of a day, also depending on zoom level.


-- 
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] helgasoft commented on issue #18675: [Bug] Candlestick chart doesn't mix with xAxis type 'time'

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-1567687805

   > repeating this with an xAxis type 'category' would require a whole lot of code, if possible at all. 
   Candlesticks evenly distributed, even if there are gaps in their appearance in time. Just like ECharts' candlestick demos look like.
   
   You requirements will be satisfied only through xAxis type 'category'. 
   It is possible, as in [the example](https://echarts.apache.org/examples/en/editor.html?c=candlestick-sh). Just adapt _splitData()_ to your data.
   


-- 
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] helgasoft commented on issue #18675: [Bug] Candlestick chart doesn't mix with xAxis type 'time'

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-1568772954

   If your complaint is about **axis labels** of type 'category', then take a look at [String Templates](https://echarts.apache.org/en/option.html#xAxis.axisLabel.formatter:~:text=Using%20string%20templates). Discussed in #18252.


-- 
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] [Bug] Candlestick chart doesn't mix with xAxis type 'time' [echarts]

Posted by "IM-001 (via GitHub)" <gi...@apache.org>.
IM-001 commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-2024141317

   Any update on this?  This seems like a very important feature to me.  Everything that said OP is on point and accurate.  I also have a very complex formatter to use the date formatting with the datazoom, but it is far to be working greatly and an extremely long formatter so far.
   
   Let's make the time axis available to candlestick charts please.  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] [Bug] Candlestick chart doesn't mix with xAxis type 'time' [echarts]

Posted by "JakkuSakura (via GitHub)" <gi...@apache.org>.
JakkuSakura commented on issue #18675:
URL: https://github.com/apache/echarts/issues/18675#issuecomment-2069707840

   Encountered this issue as well. 
   
   We should be able to supply a start time and end time, or just specify the middle time(seems currently only middle time is supported)
   
   It also seems have issues with tooltip data, not sure if it's issue of my own code
   bad
   <img width="275" alt="image" src="https://github.com/apache/echarts/assets/33482468/fac58a7b-824c-4356-bab4-4660d18b91c2">
   
   good
   <img width="292" alt="image" src="https://github.com/apache/echarts/assets/33482468/ae5c7355-5f43-4597-be05-85e427d96df1">
   
   
   I'll take some time fixing it though. I think it's easier to fix the code than add a custom 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

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