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

Basic SparkViz height?

1 Answer 45 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 24 Jun 2013, 07:32 PM
I'm trying to figure out how to change the height of a basic sparkline. I've tried the following:

01.$("#hum-log").kendoSparkline({
02.                type: "area",
03.                data: [
04.                    71, 70, 69, 68, 65, 60, 55, 55, 50, 52,
05.                    73, 72, 72, 71, 68, 63, 57, 58, 53, 55,
06.                    63, 59, 61, 64, 58, 53, 48, 48, 45, 45,
07.                    63, 64, 63, 67, 58, 56, 53, 59, 51, 54
08.                ],
09.                height: 50,
10.                tooltip: {
11.                    format: "{0} %"
12.                }
13.            });
But it did not seem to make a difference.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 26 Jun 2013, 08:36 AM
Hello Kyle,

In order to achieve this you should set height to the chartArea. I.e.:

$("#hum-log").kendoSparkline({
   //....
   chartArea: {
      height: 50,
   }
});
  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
Kyle
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or