DEV Community

SimaQ
SimaQ

Posted on

How to assign different colors to multiple lines in a line chart

Title

How to assign different colors to multiple lines in a line chart

Description

Hello, how to assign different colors to multiple polylines?

Image description

Solution

  1. Configure color in spec, you can refer to this demo https://visactor.bytedance.net/vchart/demo/area-chart/stream-graph
  2. Configure the color in the element style, you can refer to https://visactor.bytedance.net/vchart/demo/line-chart/multi-line
  3. Set the color palette by theme, you can refer to the demo https://visactor.bytedance.net/vchart/demo/theme/theme-switch , documentation: https://visactor.bytedance.net/vchart/guide/tutorial_docs/Theme/Color_Theme

Related Documents

Top comments (0)