我正在尝试更改 jqchart 工具提示的颜色,但没有任何成功。
我只是成功地改变了线条的颜色。
在我构建 jqchart 的代码下方:
$('#jqChartMes').jqChart({
title: { text: 'Mensal' },
border: { lineWidth: 0 },
legend: { location: 'bottom' },
animation: { duration: 1 },
dataSource: porMes,
axes: [
{
type: 'line',
location: 'left',
minimum: -5,
maximum: 110,
interval: 50
}
],
series: [
{
type: 'line',
title: 'Disponibilidade na Falha',
strokeStyle: '#00F',
lineWidth: 1,
xValuesField: {
name: 'MES',
type: 'string' // string, numeric, dateTime
},
yValuesField: 'DISP_FALHA'
},
{
type: 'line',
title: 'Disponibilidade Geral',
strokeStyle: '#FCB441',
lineWidth: 1,
xValuesField: {
name: 'MES',
type: 'string' // string, numeric, dateTime
},
yValuesField: 'DISP_GERAL'
},
{
type: 'line',
title: 'Efetividade',
strokeStyle: '#00A65A',
lineWidth: 1,
xValuesField: {
name: 'MES',
type: 'string' // string, numeric, dateTime
},
yValuesField: 'EFETIV',
}
]
});
我在 jqchart 网站上进行了很多搜索以尝试解决我的问题,但没有成功。请大家帮帮我。