1

在我的 Angular 2 应用程序中,我无法在 highcharts 中跳过周末。我在 highstock 中看到有选项 ordinal:true 可以跳过周末,但它对我不起作用。有没有其他选择可以跳过周末。从周二开始,这很有效。

xAxis: {
                            type: "datetime",
                            tickInterval: this.tickinterval,
                            //ordinal: true,
                            breaks: [{
                                from: this.fromdate,
                                to: this.todate,
                                repeat: this.repeat
                            }],
                            labels: {
                                formatter: function () {
                                    return highcharts.dateFormat('%H', this.value);

                                }

                            },
                            plotLines: this.plotlines,


                            max: this.maxdate,
                        },

<chart [options]="chartOptions" type="chart" class="chartstyle" style="height:50%"> </chart>

在此处输入图像描述

4

0 回答 0