0

我正在寻找使用 Chartist.js 在 HighCharts 中实现 plotLine 的最佳实践。

Highcharts 示例是http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/xaxis/plotlines-color/

$(function () {
    $('#container').highcharts({
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],

            plotLines: [{
                color: '#FF0000',
                width: 2,
                value: 5.5
            }]
        },

        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        }]
    });
});

我在文档中没有看到这样的选项,那么自定义 svg 元素(路径/线)是正确的方向吗?

4

0 回答 0