DEV Community

SimaQ
SimaQ

Posted on

1

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay