-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that Bar Chart dialog combo boxes remember their state correctly when dialog reopens #6517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony that's already much better. The oddity now is that we have the Position control when the option is set to count, but not otherwise.
I suggest the right-hand-side is going to be a bit more complicated anyway, with the multiple options for x or y. So could you move the Position control to the left hand side. It can be above the Flip button and a single line, so the control is just after the label.
This will make the dialogue a bit longer, which is ok. There will be more options to come.
@rdstern I'm not sure about it but after looking at the code, it seems to be a reason that I ignore for instance the Position control is visible when the option is set to count otherwise it is Y variable Receiver control which is at the same location with Position control. I wonder if it is good to move those two controls above Flip button. Can we have a quick chat? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony that is a reasonable start, but there is a long way to go.
- In the second option there needs to be the x-variable label and control. You have lost that.
- Then there is a lot to do on the R code that is generated. Currently the only difference in the R-code is whether the orientation is vertical or horizontal. The R-code for the value option does not have the "identiry" option any more. You need to examine the different options in the current Version 7.2 dialogue as a start.
@rdstern I have improved the code and design regarding your comments above. Could you test the change? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony excellent, this all seems to be working!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@N-thony this all seems to be working. Well done!
@lloyddewit there is more to be done, but I suggest it would be good to merge this first.
@Ivanluv Please could you peer review? thanks |
@N-thony there seem to be some problems of clearing part of the R-code. I show the sequence that led to an error:
This ran fine: Here is the completed dialogue - it is very simple:
You see, in the error and also in the code above, that lots of the code remains from the previous graph. If I first press Reset, then it delivers - instead - the following code:
This runs fine and gives the graph I want. |
instat/dlgBarAndPieChart.vb
Outdated
Else ucrVariablesAsFactorForBarChart.Add(clsParam.strArgumentValue) | ||
End If | ||
End If | ||
Next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ivanluv thanks for your comment above, I think it is fixed now. Please have a look. Thanks. |
@lloyddewit this is good from my end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lloyddewit I think @Ivanluv is also ok with this.
@N-thony could you improve the PR header? Small bug fixes in Bar And Pie chart Dialog is too general. Remember this header will be used to automatically generate release notes. Could you include the details of the bug fixed? |
<data name="rdoPieChart.Enabled" type="System.Boolean, mscorlib"> | ||
<value>False</value> | ||
</data> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partially fixes #6135
This PR fixes the bug in the two comboxes to remember the states in reopen, and the presentation of the labels.
@africanmathsinitiative/developers @rdstern this is ready for review. Thanks.