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

line width when user data (not datasource)

1 Answer 111 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 30 Apr 2015, 09:03 AM

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.


 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 04 May 2015, 08:36 AM
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!
 
Tags
Sparkline
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Iliana Dyankova
Telerik team
Share this question
or