line width when user data (not datasource)

2 posts, 1 answers
  1. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 30 Apr 2015 Link to this post

    I have two sparkline charts.

    A is using dataSource, B is using data.

    How do I set the line width of B? (line width in A work fine).

    Sparkline A

    $(".item-dev-chart", sparkline).kendoSparkline({
        theme: "bootstrap",
        dataSource: itemDevDs,
        series: [{
            type: "line",
            field: "p",
            width: 2
        }],
        tooltip: {
            visible: false
        }
    });

    Sparkline B:

    $t.kendoSparkline({
        theme: "bootstrap",
        data:$t.data("source").split(','),
        type: "line",
        chartArea: {
            background: "#f5f5f5"
        },
        tooltip: {
            visible: false
        }
    });

    Copying series options from A to B causes B to not show at all.


     

     

     

     

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 04 May 2015 Link to this post

    Hi Morten,

    In order to achieve this for Sparkline B you should set series.data and series.width
    $t.kendoSparkline({
        theme: "bootstrap",   
        series: [{
           width: 10,
           data:$t.data("source").split(',')
        }],
        type: "line",
        chartArea: {
            background: "#f5f5f5"
        },
        tooltip: {
            visible: false
        }
    });


    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