在highcharts中查看IP


甲基蓝
2025-03-10 06:28:38 (2天前)


如何在highcharts中查看ip地址

示例代码

我需要修复yAxis标签和工具提示

电流输出:



5G
</跨度>
+ ——————- +
| |
3G | o锟

3 条回复
  1. 0# ࿏自ོ༾由ོ༽人͙⃡⌇ | 2019-08-31 10-32




    小提琴演示




    1. $(function () {
      $(‘#container’).highcharts({
      chart: {
      type: scatter’,
      inverted: true
      },

    2.     xAxis: {
    3.         categories: ['1.1.1.1 ', '2.2.2.2', '3.3.3.3']
    4.     },
    5.     series: [{
    6.         data: [29.9, 71.5, 106.4]        
    7.     }]
    8. });
    9. });

    10. </code>

  2. 1# 日耀九洲 | 2019-08-31 10-32



    你可以使用

    标签格式化程序




    1. yAxis: {
      labels: {
      formatter: function () {
      return num2ip(this.value);
      }
      }
      }

    2. </code>


    您可以按如下方式格式化工具提示,即使用catch

    this.key

    引用气泡图中的第三个值




    1. tooltip: {
      formatter: function () {
      return + num2ip(this.y) + ‘:’ + this.x + - + this.key + ;
      }
      },

    2. </code>



    演示@ jsFiddle


登录 后才能参与评论