Bar Chart - how to control positioning of major tick marks and width of bars
<p>I'm trying to create a series of bar charts in BDPro that will comparitively display the same data for 4 different customers. The only possible category values for the x-axis are the numbers 1-9. I always want to see the numbers 1-9 across the x-axis; I want their spacing to be consistent; I want the width of the bars to remain fixed.</p>
<p> </p>
<p>In execution, I get a a chart that may or may not display 1,2,3,4,5,6,7,8,9 across the x-axis. Depending upon the which and how many of the categories have a y series values, I sometimes see 0,2,4,6,10. To fix this, I used beforeRendering function to set the tick positions using "options.xAxis.tickPositions=[1,2,3,4,5,6,7,8,9]. Great! this worked. I now see 1,2,3,4,5,6,7,8,9 across the x-axis on all four charts, regardless off which categories have a value. However, the relative spacing between the tick marks and the starting position of the first tick mark, relative to the y-axis will vastly change depending upon how many of the categories have values to plot, In addition, the bar widths also vary widely.</p>
<p> </p>
<p>thanks,</p>
<p>Keith</p>