Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Highcharts “中间”不起作用_Highcharts - Fatal编程技术网

Highcharts “中间”不起作用

Highcharts “中间”不起作用,highcharts,Highcharts,我想使用Highchart图中给出的tickmarkplacement'between'。但我发现,只有在给出“类别”时,它才有效。 如何在不设置类别的情况下使用它? 是一个示例图,我想在其中使用属性“tickmarkplacement:between” $(function () { var data=[[16,10],[24,3],[30,7],[48,8]]; var param= { Name: "Current speed",

我想使用Highchart图中给出的tickmarkplacement'between'。但我发现,只有在给出“类别”时,它才有效。 如何在不设置类别的情况下使用它? 是一个示例图,我想在其中使用属性“tickmarkplacement:between”

   $(function () {


var data=[[16,10],[24,3],[30,7],[48,8]];
var param= {
            Name: "Current speed",
            Color: "#C6C6C6 ",
            LineStyle: "Solid",
            SeriesType: "line",
            LineWidth: 2,
            TickInterval: null,
            MinValue: null,
            MaxValue: null,
            Decimals: 2
            };

$('#container').highcharts({
        chart: {
            plotBorderWidth: 1,
            plotBorderColor: '#E4E4E4',
        },
        xAxis: {
            title: {
                useHTML: true,
                text: param.Name + "( m/s  )",
            },
            gridLineWidth: 1,
            min: param.MinValue,
            max: param.MaxValue,
            gridLineDashStyle: 'Dot',
            tickInterval: param.TickInterval,
            tickmarkPlacement: 'between'
        },
        yAxis: {
            title: {
                text: 'Depth(m)',
            },
            reversed: true,
            tickLength: 50,
            gridLineDashStyle: 'Dot'
        },
        title: {
            text: null,
        },
        legend: {
            enabled: false
        },
        credits: {
            enabled: false
        },
        tooltip: {
            useHTML: true,
            formatter: function () {
                return this.y;
            }
        },
        series: [{
            name: param.Name,
            data: data,
            color: param.Color,
            dashStyle: param.LineStyle,
            lineWidth: param.LineWidth,
            type: "line"
        }]
    });
 });
根据,它仅适用于xAxis上的类别