Reputation: 123
I have two charts side by side in my form (using Windows.Form.Charting
). They are structured, at least as far as I can tell, identically (same size, same properties), the only difference being their positions. However, when I add titles to the two charts, the leftmost chart gets a title starting a little bit down below the top of the control, whereas on the rightmost chart, the title appears right at the top of the control. Does anyone know why this could be the case?
Upvotes: 0
Views: 198
Reputation: 123
okay, so it turns out the left chart had a title default added to it, which had an alignment of middle center. This caused any other titles added to it to also have that same alignment. Additionally, when there are no titles in the collection, and one is added (the case in the leftmost graph), its default value for alignment is top, hence the difference. Not sure why one chart had a default title or why it wasn't appearing, but this explains how the properties could look the same at a glance. The only way to catch it would be to go inside the title properties window, which their wasn't really a reason to because no titles were initially showing up on either graph.
Upvotes: 1