Lets let that there is a form in a popup window which contains the properties that are configurable for a chart and as you go on changing the values for the properties the underlying chart is refreshed so as to give the user a feel of what kind of chart he is configuring . Now there are two properties :
- Major tick increment
- Minor tick increment
The invariant that the Chart needs to maintain is major >= minor . So do I need to add different validation messages like :
Major should be greater than or equal to minor
( this one is fired when the user puts an invalid value into major and tries to tab out of that field)
Minor should be lesser than or equal to major
( this one is fired when he puts an invalid value into minor and tries to tab out of that field)
or a single validation message which could be either of the two above ?