如何使用Highcharts向3D散点图添加图例?

时间:2018-07-09 05:21:29

标签: javascript highcharts legend highstock

我正在尝试使用highchart向3d图形中添加图例,但我无法做到这一点。如何实现?

下面是jsfiddle代码

jsfiddle

下面是我为图例添加的代码,但是它不起作用...

          var chart = new Highcharts.Chart({
          chart: {
              renderTo: 'container',
              margin: 100,
              type: 'scatter3d',
              animation: false,
              options3d: {
                  enabled: true,
                  alpha: 10,
                  beta: 30,
                  depth: 150,
                  viewDistance: 5,

              }
          },

          plotOptions: {
              scatter: {
                  width: 10,
                  height: 10,
                  depth: 10
              }
          },
          yAxis: {
            categories: snr,
            title: {
                text: null
            },
            labels: {
              format: '{value:.2f}'
          }
          },
          xAxis: {
            type: 'category',
            categories: mac,
            title: {
                text: null
            }
          },
          zAxis: {
            //  categories: count,
              min: 0,
             },


     legend: {
         align: 'right',
         layout: 'vertical',
         margin: 0,
         verticalAlign: 'top',
         y: 25
     },
         legend :{
            enabled : false
          },
          series: [{
              name: 'Reading',
              colorByPoint: true,

      });

请指导我在3d图形中显示图例...

I need something like this

0 个答案:

没有答案