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
I'm creating a bar chart with labels on the X- and Y-axes. The bar chart's X-axis is time, and it's Y-axis is Yes or No, with Yes being +1 and No being -1. I would like to label the bars along the X-axis so that the bars that occur at exactly 5 minute intervals have the time in hours and minutes below or on top of them, depending on whether a particular bar is Yes (where the bar is above the axis) or No (where the bar is below the axis). So I'm clear, the labels will be in the same place no matter where the bar is- it's only the bar's location that changes. My problem is getting the custom labels in place for both of these axes. I've researched it- I found a function titled "setValuesForKeys," but this function takes a dictionary of Strings to Any as its parameter, and I can't think of what should go in such a dictionary when the chart takes doubles for its X-values. I am baffled at how this function works. Any help you could give to point me in the right direction would be greatly appreciated.
Thanks,
Sean
The text was updated successfully, but these errors were encountered:
Hi,
I'm creating a bar chart with labels on the X- and Y-axes. The bar chart's X-axis is time, and it's Y-axis is Yes or No, with Yes being +1 and No being -1. I would like to label the bars along the X-axis so that the bars that occur at exactly 5 minute intervals have the time in hours and minutes below or on top of them, depending on whether a particular bar is Yes (where the bar is above the axis) or No (where the bar is below the axis). So I'm clear, the labels will be in the same place no matter where the bar is- it's only the bar's location that changes. My problem is getting the custom labels in place for both of these axes. I've researched it- I found a function titled "setValuesForKeys," but this function takes a dictionary of Strings to Any as its parameter, and I can't think of what should go in such a dictionary when the chart takes doubles for its X-values. I am baffled at how this function works. Any help you could give to point me in the right direction would be greatly appreciated.
Thanks,
Sean
The text was updated successfully, but these errors were encountered: