echarts set background color

Problem: echarts set background color
description:

Hello @Kener-Lin Feng, I want to ask you a question: How do I set the background color of the entire icon of echarts? ? I used the color attribute, which was not displayed during the experiment on the official website. . . .


Solution 1:

 
              /*##################Start datasource processor case########################## ########*/
              option= {
              backgroundColor: '#1b1b1b',//background color
    title : {
        text: 'dynamic data',
        subtext: 'purely fictitious'
    },
    tooltip : {
        trigger: 'axis '

Solution 2:

The background color is the color of the dom itself. The background of the chart itself is transparent. You can control the overall background without adding CSS.


The above introduces the answer to the question of "echarts set the background color", I hope it will be helpful to netizens in need.
URL link of this article: http://www.codes51.com/itwd/1523298.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326483908&siteId=291194637