Highcharts API fillColor属性不起作用

时间:2016-02-22 16:07:58

标签: javascript highcharts

我在高脚椅api中使用fillColor属性时遇到问题。以下是我的代码。我尝试使用rgb值设置fillColor属性,并将其设置为等于颜色。例如,我尝试了fillColor:“blue”。无论我尝试什么,我都没有为我的折线图获得任何fillColor。我能够改变线条颜色和标记的颜色。

<script>
$(function() {
$('#container').highcharts({
credits : {
  enabled: false
},
exporting:
{
  enabled: false
},
  chart: {
      type: 'line'
  },
  title: {
      text: "Progress"
  },
  subtitle: {
      text: 'Village Print & Media'
  },
  xAxis: {
    title:{
        margin: 50,
        text: "February"
    },
    categories: ["2/3", "2/6", "2/9", "2/12", "2/15", "2/18", "2/21", "2/24", "2/27"]
  },
  yAxis: {
      title: {
          text: "Points"
      }
  },

      plotOptions: {

        series: {
        color: "black",
        fillColor: "#00FF00",
        fillOpacity: 0.7,


         },
      line: {
          dataLabels: {
              enabled: false
          },
          enableMouseTracking: true
      }


  },
  legend: {
      layout: 'vertical',
      align: 'left',
      verticalAlign: 'middle',
      borderWidth: 2
  },
  series: [{
      name: 'Points Ray',
      data: [5, 10, 15, 17, 25, 30, 34, 35, 50]
  }]
});
 });
 </script>

0 个答案:

没有答案