rajivsjmsoftech / cwm-drawtool

Automatically exported from code.google.com/p/cwm-drawtool
0 stars 0 forks source link

Ungrouping graph axis results in strange behavior #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Load SvgEditorDemo.html  so you have a blank canvas.
- Insert graph axis with default parameters.  Note the height of the toolbar 
that contains the Drawing STarters, Web Image, etc buttons.
- Double-click the "10".  Toolbar height has increased.
- Click elsewhere so nothing is selected.
- Double-click the "10" again.  X-axis has become greyed out and cannot be 
selected by clicking on it.

Original issue reported on code.google.com by bgoldow...@gmail.com on 7 Feb 2012 at 1:09

GoogleCodeExporter commented 9 years ago
It seems that double click is supposed to allow you to ungroup and regroup, 
however, this seems very buggy.  Simple fix (revision 47) was to ensure that 
the items are grouped and then to removed double click behaviour from canvas.

Original comment by RobertLe...@gmail.com on 7 Feb 2012 at 2:46

GoogleCodeExporter commented 9 years ago
The double click no longer ungroups.
Unfortunately, clicking the "ungroup" icon in the toolbar causes bad behavior 
too - entire graph becomes black.  So I have to reopen bug.

Original comment by bgoldow...@gmail.com on 10 Feb 2012 at 9:43

GoogleCodeExporter commented 9 years ago
The practical point of this, I should say, is to make it easy for people to 
edit the labels on the X and Y axis.  Everyone who makes a graph is going to 
have to change those labels to something meaningful, so either they should not 
be in a group, or it should be easy to ungroup and edit them.

On another level, if ungrouping has such strange effects, it makes me worry 
that the SVG being generated may be somehow malformed.

Original comment by bgoldow...@gmail.com on 10 Feb 2012 at 9:56

GoogleCodeExporter commented 9 years ago
Svg edit is just very touchy with svg attributes.  In any case, check it now, 
seems to be "fixed".  I just hide the button using top and position absolute so 
that it doesn't conflict with actually hiding and showing it.

Original comment by RobertLe...@gmail.com on 10 Feb 2012 at 10:26

GoogleCodeExporter commented 9 years ago
The ungroup option is gone - there seems to be no way now to set the axis 
labels to meaningful values.

Original comment by bgoldow...@gmail.com on 14 Feb 2012 at 1:58

GoogleCodeExporter commented 9 years ago
Could you explain a bit more "set the axis labels to meaningful values"?

Original comment by RobertLe...@gmail.com on 14 Feb 2012 at 2:02

GoogleCodeExporter commented 9 years ago
So, if I'm drawing a graph of how many baby teeth people lose by a certain age, 
I'd need to change the "X axis" label to say "age", and the "Y axis" label to 
say "Number of teeth lost".
Ideally I could just click on those labels and change the text in them the way 
I can with other text labels in the drawing tool.

Original comment by bgoldow...@gmail.com on 14 Feb 2012 at 6:06

GoogleCodeExporter commented 9 years ago
A new feature was added in revision 61, it gives you the ability to set the 
graph axis labels.

Original comment by RobertLe...@gmail.com on 21 Feb 2012 at 2:00