new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Apache ECharts · all subjects

color

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

colorBy option values and behavior

The colorBy option controls the policy for assigning colors from the color palette. It was introduced in version 5.2.0. The valid values are: 'series' (default) which assigns colors by series so all data in the same series are in the same color, and 'data' which assigns colors by data items so each data item uses a different color.

colorBy default value

The colorBy option defaults to 'series'.

Global palette configuration

A global palette can be specified in the chart option using the color property at the root level. This provides a group of colors that will be automatically picked by series and data items.

Series-specific palette configuration

Individual series can have their own exclusive palette by setting the color property within the series configuration. This palette applies only to that series and overrides the global palette.

Global palette example

Example of setting a global palette with 11 colors: color: ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3'].

Default theme changed in v5

ECharts v5 has changed the default theme from v4. To keep the v4 colors, set the chart option with the v4 color array: ['#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3']. Alternatively, you can create a v4 theme object with these colors and pass it to echarts.init(dom, themeEC4).

Give your agent this brain