Opened 8 years ago

Last modified 3 years ago

#14940 assigned defect

dojox.charting.widget.Sparkline sizing is incorrect when in a templated widget

Reported by: Jean-Rubin Leonard Owned by: dylan
Priority: high Milestone: 1.15
Component: Charting Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Hi, when we have a widget that uses a template and we we create an instance of that widget, the sparkline contained in that widget defaults to a 400 (width) by 300 (height) dimension. It does so regardless of the size specified in the CSS for the div that will contain the sparkline. Here's my setup: I have a widgetA. that widget is a key performance indicator row. Among other things in that row I want to show a sparkline. Because I may have several KPIs to look at, there can be several instances of widgetA. So in widgetA I have a div that is going contain the sparkline. I want that div to be a certain width, controlled by CSS. Unfortunately regardless of the size i put in the CSS, the sparkline defaults to 400X300. This behavior happens when i use a template only. I have other divs that I put directly in the markup and whether I specify the CSS online or in a CSS construct, the sparkline sizes fine. I attach a test file where you can see three sparklines: 1 with the inline CSS, one where the CSS is specified in the CSS section and another one in a templated widget (the third one). As it stands, if we cannot control the size of a sparkline widget from CSS it's a significant inconvenience as that would mean we cannot dynamically create instances of several rows that can control sparklines. Thanks for looking into it.

Attachments (3)

testSparkLine.html (2.0 KB) - added by Jean-Rubin Leonard 8 years ago.
KPIRowTest.js (1.1 KB) - added by Jean-Rubin Leonard 8 years ago.
KPIRowTest.html (88 bytes) - added by Jean-Rubin Leonard 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by Jean-Rubin Leonard

Attachment: testSparkLine.html added

Changed 8 years ago by Jean-Rubin Leonard

Attachment: KPIRowTest.js added

Changed 8 years ago by Jean-Rubin Leonard

Attachment: KPIRowTest.html added

comment:1 Changed 8 years ago by bill

Component: DojoX WidgetsCharting
Owner: changed from dante to Eugene Lazutkin

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11
Owner: changed from Eugene Lazutkin to dylan
Priority: undecidedhigh
Status: newassigned

comment:3 Changed 4 years ago by dylan

Milestone: 1.111.12

comment:4 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.