博文

目前显示的是标签为“wijmo”的博文

the tips of the bar chart in wijmo 3

1. Hide the label on each bar  var _chartLabels = $("#wijbarchartPro").wijbarchart().data().fields.chartElements.chartLabels; $.each(_chartLabels, function (index, elem) {    if((index%2)==1){elem.attr('text', '');}  }); 2. rotation label on bar chartLabelStyle: {rotation: 90}, 3.  You can get the path element of the axis using the following properties : xaxis   = $(“#wijbarchart”).wijbarchart().data().wijbarchart.axisEles[0].attrs.path[0]; yaxis = $(“#wijbarchart”).wijbarchart().data().wijbarchart.axisEles[0].attrs.path[1]; 4. The chartLabels[index].attrs.x and chartLabels[index].attrs.y return the positiong of the label. For instance, to get the position of first label upi may use the following js : var x = $(“#wijbarchart”).wijbarchart().data().fields.chartElements.chartLabels[0].attrs.x; var y = $(“#wijbarchart”).wijbarchart().data().fields.chartElements.chartLabels[0].attrs.y; 5.Change Bar Color ...