#7722 closed defect (fixed)
defect: Axis2D error on null ticks
Reported by: | SternJason | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.2.2 |
Component: | Charting | Version: | 1.2beta |
Keywords: | charting axis2d null ticks | Cc: | |
Blocked By: | Blocking: |
Description
Current, the Default.js file attempts to generate tick marks without first verifying that they have been defined. This causes problems when using multiple plots or when changing the name of the axises (hAxis, vAxis) as the ticks don't seem to be autogenerated.
I don't recall the actual line number, but the problem code starts with:
dojo.forEach(t.major,
and ends right before:
this.dirty=false;
Wrapping this code with a null check for t seems to fix the issue and allows for charts that don't have ticks and for autogenerated ticks based off of multiple (line) plots.
Thanks for all your hard work! Jason
Attachments (1)
Change History (10)
comment:1 Changed 13 years ago by
Milestone: | → tbd |
---|
comment:2 Changed 13 years ago by
Priority: | high → normal |
---|---|
severity: | major → normal |
Changed 13 years ago by
comment:3 Changed 13 years ago by
Sure! I just uploaded a very simple sample (although my actual use is much more complex). The attached file should run without needing any additional resources as long as you update the script tag to point to your dojo 1.2rc1 instance.
Please note that if I add the null pointer check, the chart is displayed correctly with the correct axis labeling. Thanks! Jason
comment:4 Changed 13 years ago by
Milestone: | tbd → future |
---|---|
Status: | new → assigned |
comment:5 Changed 13 years ago by
Milestone: | future → 1.2.1 |
---|
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The trac is broken. It doesn't show any changesets related to this ticket. Nevertheless, I close this ticket as fixed.
comment:9 Changed 12 years ago by
Milestone: | 1.2.1 → 1.2.2 |
---|
What you described is not a bug. t being null is. Would you mind to attach a minimalistic example that shows how you manage to do that?