You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "jlefeaux (via GitHub)" <gi...@apache.org> on 2024/03/28 18:40:49 UTC

Re: [I] Custom positions for axis labels/ticks [echarts]

jlefeaux commented on issue #13627:
URL: https://github.com/apache/echarts/issues/13627#issuecomment-2025878019

   I was able to do this by hiding the x-axis labels and adding vertical marklines.
   
   ![image](https://github.com/apache/echarts/assets/14351679/17fcbbaa-aad0-47c0-9d3d-340728fcf932)
   
   ```
   markLine: {
         data: stages.map(stage => ({
           xAxis: stage,
         })),
         symbol: "none",
         label: {
           position: "start",
           formatter: params => (params.value === +stages.at(-1) ? "Close" : params.value),
         },
   },
   ```


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