Justin-ZS commented on issue #20770:
URL: https://github.com/apache/echarts/issues/20770#issuecomment-2673113800

   > Another possible workaround would be to use an inviseble helper series 
that only contains your min and max values. Could be problematic combined with 
`tooltip: { trigger: 'axis' }`.
   > 
   > 
[Example](https://echarts.apache.org/examples/zh/editor.html?c=line-smooth&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2Srz8sHhM_t5gHEr2jqFURlSEsKIh7h6wQmAiKQAcAEwADDywAJwAzPklpYUAjNXlACwltfk1LeXlxbC1lYXWcR4U1HT-ENDKg6R4ALbAwGDaRFExHg5pIejD3gwKeGDAM8EZoRAR0GDL0VRTgsJim6Si3QDsuf0l6AD0X7Az4490M8WgBWMHWUg_P6MDCPWxrEi2OwAbiAA)
   
   Yes. It's exactly the workaround i'm using for now.
   I append an invisible line series to meet the requirement, but an official 
API would be much better
   ```js
   const invisibleSeries = {
       type: 'line',
       symbolSize: 0,
       lineStyle: {
           width: 0,
           opacity: 0,
       },
       emphasis: {
           scale: false,
           disabled: true,
       },
       select: {
           disabled: true,
       },
       silent: true,
       animation: false,
       label: {
           show: false,
           formatter: '',
       },
       tooltip: {
           show: false,
           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: [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]

Reply via email to