This is a migrated thread and some comments may be shown as answers.

Sparkline Pie Chart Not Respecting Height

1 Answer 99 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Scantron-Morrisville
Top achievements
Rank 1
Scantron-Morrisville asked on 29 Oct 2014, 03:25 PM
I'm trying to use a sparkline pie chart, and it's not obeying the height restrictions imposed upon it.  It renders at the correct width, but not the correct height.  I considered other styles causing a conflict, but I've declared the CSS inline, which should beat out any styles specified elsewhere.

What am I missing?

<div kendo-sparkline style="width: 20px; line-height: 20px; display: inline-block; height: 20px;"
     k-series="[{
          type: 'pie',
          data: [8,16],
      }]">
</div>

Attached is the rendered html.  As you can see, the inner span is set to a width of 100px instead of the 20px it should have.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 31 Oct 2014, 11:14 AM
Hi Grant,

I tried to reproduce the issue but to no avail (dojo example). Could you please modify my example and try to demonstrate the problem - this way I would be able to advice you further and provide concrete recommendations? Thank you in advance for your cooperation and time.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Sparkline
Asked by
Scantron-Morrisville
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or