Syntax to create a heat map with Highcharts

前端 未结 1 1842
轮回少年
轮回少年 2021-01-25 07:35

I would like to do a heat map but without \'time\' and integer as X and Y axis (In fact in the example of Highcharts http://jsfiddle.net/9pJhF/ it use csv with integers and data

相关标签:
1条回答
  • 2021-01-25 08:07

    You can use something like this

    xAxis: {
            //type: 'category',
            categories: ['Name1','Name2','Name3'],
            tickInterval:  1,
            gridLineWidth: 1,
            tickLength: 0,
            lineWidth: 0,
            min: 0, 
            max: 2
        },
    
        yAxis: {
            categories: ['Name1a','Name2a','Name3a'],
            tickInterval:  1,
            title: {
                text: null
            },
            minPadding: 0,
            maxPadding: 0,
            startOnTick: false,
            endOnTick: false,
            tickLength: 0,
            lineWidth: 0,
            min: 0,
            max: 2
        },
    
    • http://jsfiddle.net/tZ6GP/5
    • http://jsfiddle.net/tZ6GP/6
    0 讨论(0)
提交回复
热议问题