2017-04-27 126 views
0

您知道Yii2中的源代碼位置嗎?我已經通過作曲家安裝了highcharts。Yii2的高級搜索

enter image description here

因爲我想給它添加一個列表。在此先感謝

+0

你想在列表 –

+0

添加另一種選擇是,我要通過程序來添加另一種選擇@ Deep3015 – r34627673

回答

0

看看供應商目錄。

因此,如果您正在使用 「miloschuman \ yii2-highcharts的微件」 和你使用作曲家安裝了它,嘗試尋找在供應商\ miloschuman \ yii2-highcharts的微件目錄。

也是一樣與其他廠商如「yiisoft \ yii2」等人,他們也都在廠商目錄。

另一條建議。如果您打算修改供應商目錄上的這些源代碼,請不要。這是不可取的,因爲當您運行另一個作曲家更新時,您對該源代碼所做的所有更改都將被覆蓋。只需將該軟件包分叉並創建自己的軟件包,以便在您運行作曲者更新後不會被覆蓋。

0

在這裏看到更多的細節Exporting Buttons

$(function() { 
 
    $('#container').highcharts({ 
 

 
    title: { 
 
     text: 'Solar Employment Growth by Sector, 2010-2016' 
 
    }, 
 

 
    subtitle: { 
 
     text: 'Source: thesolarfoundation.com' 
 
    }, 
 

 
    yAxis: { 
 
     title: { 
 
     text: 'Number of Employees' 
 
     } 
 
    }, 
 
    legend: { 
 
     layout: 'vertical', 
 
     align: 'right', 
 
     verticalAlign: 'middle' 
 
    }, 
 

 
    plotOptions: { 
 
     series: { 
 
     pointStart: 2010 
 
     } 
 
    }, 
 

 
    series: [{ 
 
     name: 'Installation', 
 
     data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175] 
 
    }, { 
 
     name: 'Manufacturing', 
 
     data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434] 
 
    }, { 
 
     name: 'Sales & Distribution', 
 
     data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387] 
 
    }, { 
 
     name: 'Project Development', 
 
     data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227] 
 
    }, { 
 
     name: 'Other', 
 
     data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111] 
 
    }] 
 
    }); 
 

 

 
    Highcharts.getOptions().exporting.buttons.contextButton.menuItems.push({ 
 
    text: 'Additional Button', 
 
    onclick: function() { 
 
     alert('OK'); 
 
     /*call custom function here*/ 
 
    } 
 
    }); 
 

 

 
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="http://code.highcharts.com/highcharts.js"></script> 
 
<script src="http://code.highcharts.com/modules/exporting.js"></script> 
 

 
<div id="container" style="height: 400px; margin-top: 1em"></div>

+0

@ r34627673你是不是能夠得到 –