Opened 12 years ago

Closed 7 years ago

#12081 closed defect (patchwelcome)

Customized dojox.chart theme with silverlight error

Reported by: Siqi Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: DojoX GFX Version: 1.5
Keywords: Cc:
Blocked By: Blocking:


Step 1. Customize the default chart theme by removing the "width" property of maker.stroke in dojox.charting.Theme.js Step 2. Enable silverlight for the gfx rendering

Open the attachment with IE, an error occurs and no chart will be displayed. Do not have this problem if svg is enabled for the gfx rendering.

Attachments (1)

test_customized_theme.html (4.5 KB) - added by Siqi 12 years ago.
Put it under "dojox/charting/tests"

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Siqi

Attachment: test_customized_theme.html added

Put it under "dojox/charting/tests"

comment:1 Changed 12 years ago by Siqi

I think that it is caused by something wrong in the function 'setStroke' in dojox/gfx/silverlight.js. If the width of stroke is not set for the theme, s.width will be NaN. We need to take care of this situation just like what has been done in dojox/gfx/svg.js.

r.strokeThickness = s.width;

comment:2 Changed 11 years ago by Eugene Lazutkin

Milestone: tbdfuture
Status: newassigned

comment:3 Changed 7 years ago by dylan

Milestone: future1.12
Resolution: patchwelcome
Status: assignedclosed

Silverlight is mostly abandoned as a tech, so closing as patchwelcome.

Note: See TracTickets for help on using tickets.