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

[GitHub] [echarts] jonathanMelly commented on issue #13385: Set symbol for the end point of mark line when drawing horizontal or vertical mark lines alongside x or y axis.

jonathanMelly commented on issue #13385:
URL: https://github.com/apache/echarts/issues/13385#issuecomment-1549779152

   > I managed to find a workaround which makes this use case work, but an elegant implementation would certainly be welcome (and probably more future-proof). The trick is to define a global symbol for all markLines in series and then disable the start point in the `data` array:
   > 
   > ```js
   > {
   >   type: 'line',
   >   name: 'myLine',
   >   markLine: {
   >     symbol: 'your custom symbol',
   >     data: [
   >       {
   >         name: 'name',
   >         xAxis: 1,
   >         symbol: 'none', // <- disable the start point symbol here
   >       }
   >     ]
   >   }
   > }
   > ```
   > 
   > The downside to this approach, though, is that you can only define one symbol per set of data, so if you need to render more markLines with different symbols, you need to add them as multiple entries to the series. Please someone correct me if there is a better solution.
   
   thanks for sharing, it works for me too


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