Basic SparkViz height?

2 posts, 0 answers
  1. Kyle
    Kyle avatar
    1 posts
    Member since:
    Jun 2013

    Posted 24 Jun 2013 Link to this post

    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.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 26 Jun 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top