0

I'm trying to change the line color that shows up when you hover over a point in highstocks but I haven't been able to find any such setting in their documentation.

Here's what I'm trying to change the color of

example

$(function() {
    $('#container').highcharts('StockChart', {

        tooltip: {
            backgroundColor: {
                linearGradient: {
                    x1: 0,
                    y1: 0,
                    x2: 0,
                    y2: 1
                },
                stops: [
                    [0, 'white'],
                    [1, '#EEE']
                ]
            },
            borderColor: 'gray',
            borderWidth: 1
        },

        rangeSelector: {
            selected: 1
        },

        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});

Here's my jsfiddle

4

2 回答 2

1

它被称为十字准线。

这可以从 tollrip 设置

crosshairs: {
    dashStyle: 'dash',
    color: 'red'
 }

在本节中更改十字准线的颜色和其他属性

在http://jsfiddle.net/BWwbK/1/更新了你的小提琴

希望这对你有用

于 2013-10-14T06:30:05.070 回答
0

我找到了我需要的房产。我只需要将以下内容添加到工具提示中

crosshairs: {
    color: '#ff0000'
}

http://jsfiddle.net/BWwbK/2/

于 2013-10-14T06:33:28.283 回答