You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, trying out the demo for bar chart, I can see that the xAxis grid line are at the centre of the bar.
Is it possible for it to be situated in-between each bar, much like grouped bar chart. Since I'm only using 1 data set, so its not suitable to use grouped bar chart.
The text was updated successfully, but these errors were encountered:
but the x value is the center of the bar. But you could override the x axis renderer to shift the grid line.
for multiple bars, the trick is described as follows. You could refer to tweak the x values
/// Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries.
/// Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified by the parameters.
/// Do not forget to call notifyDataSetChanged() on your BarChart object after calling this method.
///
/// - parameter the starting point on the x-axis where the grouping should begin
/// - parameter groupSpace: The space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1f
/// - parameter barSpace: The space between individual bars in values (not pixels) e.g. 0.1f for bar width 1f
@objcopenfunc groupBars(fromX:Double, groupSpace:Double, barSpace:Double)
Hi, trying out the demo for bar chart, I can see that the xAxis grid line are at the centre of the bar.
Is it possible for it to be situated in-between each bar, much like grouped bar chart. Since I'm only using 1 data set, so its not suitable to use grouped bar chart.
The text was updated successfully, but these errors were encountered: