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

[GitHub] [echarts] battlebeast01 commented on issue #18897: [Bug] Setting the label color and bar color the same, by default

battlebeast01 commented on issue #18897:
URL: https://github.com/apache/echarts/issues/18897#issuecomment-1636785023

   > In your example, it's the `custom` series, the label will inherit the visual color from the series items by default. If you want the same behavior in the normal `bar` series, you can explicitly set the [`label.color`](https://echarts.apache.org/option.html#series-bar.label.color) as `inherit`. See this [demo](https://echarts.apache.org/examples/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwATAAMPLAZmbDJAKy5ABy5AOy5yckVAMzp1qEeFNR0AEaMHLxx6PTA_pwAQuR0QmCMnQmw_owtVP5uXaR42sAA7kRgHEoNCSDAeBCQMHRgoOMTsD19HHQQ0NoRB8ETdnEv6LZ2ANxAA).
   
   @plainheart thanks a lot for the reply, it helped a lot!
   Is it possible to set label.color as inherit, and label.position as inside and still keep the labels visible?


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