小编Did*_*ier的帖子

Highcharts:平滑/抗锯齿线

我使用了 highcharts 库中的基本折线图,但我认为线条不够平滑。

有可能改进吗?

我的代码:

    chart: {
            type:'line',
            renderTo: 'issues_by_release',
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
            },
    yAxis: { 
            min:0,
            labels:{ enabled:true },
            title: {
                     text:'Issues'
                   }                          
           },
    xAxis: {
            tickmarkPlacement: 'on',    
            tickLength:10,  
            categories:['1','2','3','4','5'],
            labels:{ rotation:-45, 
                     align:'right'
                   }                           
            },
    plotOptions: {
                    line: {                            
                            dataLabels: {
                                            enabled: true                                                    
                                        },
                            enableMouseTracking : false,
                            showInLegend: true
                        }                        
                    },                                
                    series: [{
                            type: 'line',                           
                            name: 'Testers', 
                            data: [1,2,3,4,5]                                                           
                            }                           
                            ]
            });
        });
Run Code Online (Sandbox Code Playgroud)

先感谢您 !

antialiasing highcharts

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

antialiasing ×1

highcharts ×1