2014-03-03 93 views
0

我試着去創建一個主題類似的樣品中:jqPlot數據標籤顏色餅圖

temp = { 
     seriesStyles: { 
      seriesColors: ['red', 'orange', 'yellow', 'green', 'blue', 'indigo'], 
      highlightColors: ['lightpink', 'lightsalmon', 'lightyellow', 'lightgreen', 'lightblue', 'mediumslateblue'] 
     }, 
     legend: { 
      fontSize: '8pt' 
     }, 
     title: { 
      fontSize: '18pt' 
     }, 
     grid: { 
      backgroundColor: 'rgb(211, 233, 195)' 
     } 
    }; 

    plot3.themeEngine.newTheme('uma', temp); 
    plot5.themeEngine.newTheme('uma', temp); 

我怎樣才能更改數據標籤顏色的圖表?

回答

1

您可以使用css更改JQPlot的數據標籤顏色。

將樣式到這些類

.jqplot-data-label的餅圖

.jqplot-point-label的線路圖/酒吧,圖表

您還可以檢查此鏈接:http://www.jqplot.com/tests/point-labels.php#chart3

希望它可以幫助!

問候, 阿尼什

+1

THX烏拉圭回合的答案我一直在尋找一些對象像Java腳本,但我想這是不可能的 – Windys