#15991 closed defect (fixed)
dojox.charting: smart labels for slices with a value of zero / wrong colorizing
Reported by: | Paul Christopher | Owned by: | cjolif |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8.1 |
Component: | Charting | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Description
- Empty smart labels are displayed for slices with a value of zero (which should have no label at all?).
- It seems that all slices are taken into account when colorizing the chart althoug some slices are not visible. Therefore some slices located next to each other have the same color (which should not be the case? At least the chart would look better if there were a color other than green).
Steps to reproduce the issue
- Download http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_pie_smart_label.html
- In line 109, change y from 0.64 to 0.
- Run the test case. An empty line is displayed without the text "Egypt".
Attachments (4)
Change History (13)
Changed 8 years ago by
Attachment: | screenshot1.png added |
---|
comment:1 Changed 8 years ago by
Changed 8 years ago by
Attachment: | test_pie_smart_label.html added |
---|
Changed 8 years ago by
Attachment: | screenshot.png added |
---|
comment:3 Changed 8 years ago by
Owner: | changed from Eugene Lazutkin to cjolif |
---|---|
Status: | new → assigned |
comment:6 Changed 8 years ago by
Milestone: | tbd → 1.8.1 |
---|
comment:7 Changed 8 years ago by
It works now but sometimes the labels seem to be displayed "on top" of each other:
The test data is:
CP/PIR-EW 0 C/REC 0 EB 0 CB 0 Blaupunkt 0 CP/PIR-MD 0 ST 0 TT/PUI 0 CP/PIR-JP 0 ETAS 0 UBK Purchasing 0 SE 0 ST/PUI 0 CP/PIR-ND 0 AA 0 C/CTI 0 CP/PIR-NA 0 Virtual Plant Suppliers 0 PA 0 TT 0 DC 1 PT/PUI 1 PT 1 CP/PIR-EE 1 CP/PIR-SD 2 CP/PIR-LA 2 CP/PIR-AP 84 CP/PIR-IN 1577
[Remark: For my use case it would be even better if zero slices would have no line and text at all. If you have so many zero slices it is easier to get only those slices displayed that do contain real data. And if only those slices with data have a label, you can easily perceive them at a glance. Maybe I can find a way to turn off the drawing of the line for my application. At least I know now where to turn of the output of the text ;-) ]
Changed 8 years ago by
Attachment: | screenshot2.PNG added |
---|
comment:8 Changed 8 years ago by
omitLabels:true does the trick of hidding the labels for slices with a value of zero.
comment:9 Changed 8 years ago by
ok I guess you have your solution with omitLabels: true. We might keep in mind there is room for improvement here however indeed.
Can someone please asign this ticket to cjolif, see http://dojo-toolkit.33424.n3.nabble.com/dojox-charting-How-to-keep-smart-label-being-displayed-for-slices-with-a-value-of-zero-td3989608.html ?