2016-06-05 4 views

답변

0

예 물론,

당신은 라벨의 데이터 색상을 설정합니다 labelFontColor propertie를 사용할 수 있습니다.

문제는 3.5.0 버전 (Source) 이후로 소개 된 것입니다.

여기에 JSFIDDLE 예가 나와 있습니다.

FusionCharts.ready(function() { 
    var topStores = new FusionCharts({ 
     type: 'bar2d', 
     renderAt: 'chart-container', 
     dataFormat: 'json', 
     dataSource: { 
      "chart": { 
       "caption": "Positive/negative label data costumising", 
       "yAxisName": "Sample",    
      }, 

      "data": [ 
       { 
        "labelfontcolor": "FF0000", 
        "label": "This is a negative value", 
        "value": "-200" 
       }, 
       { 
        "label": "A positive value", 
        "value": "200" 
       }, 
       { 
        "label": "Another positive value", 
        "value": "100" 
       } 

      ] 
     } 
    }) 
    .render(); 
});