ng2 Google条形图中的双hAxis

时间:2019-06-24 07:10:19

标签: typescript

无法在ng2谷歌条形图的顶部显示更多坐标轴

this.columnChart = {//使用:any或:GoogleChartInterface         chartType:“ ColumnChart”,         dataTable:[           // this.valuedataArray,           ['NE name','Unique CXs Restored','reopen','teamAverage'],           ['ChandraShekhar',22,10,15],['Mayur SS',18,9,15],           ['Sathish k',12,8,15],['Suraj ks',8,7,15],           ['Manjunath',7,6,15],           ['Sumanth',0,5,15],         ],         选项:{标题:“性能:已还原的唯一CX”,                    方向:“垂直”,                   宽度:900,                   高度:500,                   条:{groupWidth:'10%'},                   系列:{0:{颜色:“橙色”,轴:“ UniqueCXsRestored”,targetAxisIndex:0},                       1:{颜色:“蓝色”,轴:“重新打开”,targetAxisIndex:1},                       2:{类型:“区域”,颜色:“#FF8C00”,轴:“ UniqueCXsRestored”,targetAxisIndex:0}},                   图例:{position:'bottom',alignment:'end',symbolRadius:2,maxWidth:50},                   //轴:{                   // X: {                   // UniqueCXsRestored:{label:'hours'},//底部x轴。                   //重新打开:{side:'top',标签:'days'} //顶部x轴。                   //}                   //},                   斧头:{                     // UniqueCXsRestored:{label:'hours'},//底部x轴。                     //重新打开:{side:'top',标签:'days'} //顶部x轴。                     0:{title:'hours'},                     1:{title:'days'}

              },


            indexLabel: "{Unique CXs Restored}",
            indexLabelPlacement: "outside",  
            indexLabelOrientation: "horizontal",
          //   chartArea: {
          //   backgroundColor: {
          //        fill: '#FFEFD5',
          //   }
          // },

    }                     
};

0 个答案:

没有答案