use*_*273 11 javascript css jquery highcharts
我真的不知道该怎么做.
我需要更改此highcharts图表的背景颜色:
但我似乎无法这样做 - 似乎没有任何明确的地方可以设置背景颜色?
我试着在本节中写出许多不同的值:
chart: {
polar: true,
type: 'line'
},
Run Code Online (Sandbox Code Playgroud)
但它没有做任何事情(它偶尔打破了这个剧本).
我是否需要在包含的.js文件中的某处更改它?或者可以从这个加载的脚本的级别完成?
JS真的很混乱.谁能帮我?
Omn*_*ord 28
在这里查看Highcharts API:http://api.highcharts.com/highcharts#chart--backgroundColor,您将看到它是图表对象的一个属性,可以采用纯色:
{
chart: {
backgroundColor: '#FCFFC5',
polar: true,
type: 'line'
}
}
Run Code Online (Sandbox Code Playgroud)
或Gradiant:
{
chart: {
backgroundColor: {
linearGradient: [0, 0, 500, 500],
stops: [
[0, 'rgb(255, 255, 255)'],
[1, 'rgb(200, 200, 255)']
]
},
polar: true,
type: 'line'
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
35944 次 |
| 最近记录: |