0
根据HighChart阿比点有几个变量:HighCharts:Addding不同类型的数据来分
颜色dataLabels X,Y,深入分析,事件...等
是否有任何的方式来增加额外的变量要以点在javasciprt功能达到这些目标:
同样的事情是可能的系列...
例子:
PHP
array_push($finalArray,array(x=> $date,y => ($total_income - $total_cost), credit => $total_cost, income => $total_income));
...
echo "leagueID: '" . $leagueID ."' ," ;
echo "data:" ;
echo json_encode($finalArray) . "},";
JSON输出
{leagueID: '1' ,data:[{"x":1395180000000,"y":85.28,"credit":35,"income":120.28}
的JavaScript
events: {
click: function() {
profit_company_change(this.series.options.leagueID);//It is possible, it can find this.series.options.leagueID)
的JavaScript 2
...+ '$</b><br/>Tatal credit: <b>' + this.credit +'$</b><br/>Profit: <b>'+ this.y ; // This is not possible because of this.credit
我怎么可以不发一变量“使用JSON编码的阵列另外它为什么能找到。‘X’:但找不到‘cutomParameter’: – guemues
我的代码休息的相同的休息;该解决方案是唯一的; 刚使用这个**。point。** options.custom – guemues
那么现在它的工作与否? –