You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "mKainzbauer (via GitHub)" <gi...@apache.org> on 2024/10/12 07:55:39 UTC

[I] Value not shown on 'coord' markPoint with time axis [echarts]

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

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzJrqxgCeIWJA5CBgIYTR0A0Z6BTYTJAbSSxoTALa1YdACpYxNAE68Argqx1YAXwC6ZTZ3QBjYBmALBdAMQAjACy2ATI7raDFYCcggSqchQUQOHjmUkwAHhAAzhxcsOFRAArArGBYIcJUNPQYrOpabuiRABbAAO4kYArKWAWwIMCREJAw9KyNBOp6bmEAghGRPrHFZRVVNbFirACS0KkKAG5MGCQAjA4rAKwADDtbtfGRADK5PrDD5bAAZkuRWPmxB9IQhgDWp-ck1xi3936ZknRIBIYn5IowmsdoJJhB9_NUtF0yJQ-lFBLFfH4ROIAQAGgDCIMx_3oiww1UJfiWgWgT1eAzh40xWIksjCYAAylRsKdLjAwAB1LCBIpgejWEwEDT6WLoA6HJjWLDLZBXPnsiAAL0kKxWv0xkUMS0klWqsU0ZFcZFuASw9IE6JlzIBsnkaRUagp5GU0Ca9HxnvQxKkOShAbOlDE4uVdGgMHUtXQIawnMo3JVpQgBDARVWer8PD4aKZ6AEKwA7A4ABwANhWthWux27FgAE4AHSVy3F2Clis12wbFstgDMu2bK2HbeHXeLvar1crti2DbHsGrbbLM6Zc8rZa2w5bZcrq8nm4T5B3ZZ1jabsEnLYcuiZW_IyP6Mw6YRIe0dYiYCheJIUkGbtIgjKN1S1b9z24Xh-B7R0_AyagAT_MIwyZZhFWVGESguE0ajqBomigaB6DAUApUQ8hpW7dBhGMMxiB7ct50XZdG2bdcz2ovwsKVd48NGapm3qRpmjIqQKJAKi6LzYsMTkxiFGYy990PY9b1PF9u34nCziEhlROIiSxWAMAKLEDhVQUP8LLSegkEMTRZLo81uyfTFaMxP8AMhaFqJANRDCiUjVhg2AC3go
 QKBQ-gmHmN08Gs0QJHoHp5hway9J8TQtE8vx3Joi03CYH07LCoyyFSNkUzTYReVmSDtS2BFNAAbiAA
   
   ### Steps to Reproduce
   
   1. See reproduction link
   2. See reproduction link
   3. None
   
   ### Current Behavior
   
   When having a series with a time based x-axis, 'coord' mark points values are undefined. Using a type 'max' markPoint, the value is shown. Using a formatter with the 'coord' markPoint, {c} is shown as undefined.
   
   ### Expected Behavior
   
   The value of the 'coord' markPoint should be shown just like with the 'max' type markPoint
   
   ### Environment
   
   ```markdown
   - OS:win 11
   - Browser: chrome
   - Framework: -
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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] Value not shown on 'coord' markPoint with time axis [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20410:
URL: https://github.com/apache/echarts/issues/20410#issuecomment-6224763313

   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] Value not shown on 'coord' markPoint with time axis [echarts]

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

   Still reproduces in ECharts v6.1.0 (2026-10-20, Chromium 151):
   
   1. Create a line chart with a time x-axis.
   2. Add a `markPoint` defined by `coord: ['2024-03-01', 198]` with `label.formatter: '{c}'`.
   3. The pin label renders as `undefined` instead of `198`.
   4. Same chart with `label.formatter: p => p.data.coord[1]` renders `198` correctly.
   
   The `{c}` template variable is not populated for coord-based markPoints on a time axis — `params.value` is `undefined`; `data.coord[1]` is correctly set. Workaround: use the function form.
   
   Recording with timestamps: https://scenerecap.com/s/ixqgikw2h9
   


-- 
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] Value not shown on 'coord' markPoint with time axis [echarts]

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

   yes, value is not set for ```format:'{c}'``` - it's a **bug**.
   workaround is to use ```formatter: x => {return x.data.coord[1];}```


-- 
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