1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
$("#chartOccupation").kendoChart({
theme: "bootstrap",
title: {
text: "Répartition Occupation / Type séjour ",
position: "bottom",
},
legend: {
visible: true,
position: "bottom",
},
series: [{
name: 'séjour long',
type: 'line',
field: 'value',
categoryField: 'date',
data: [
{
value: 10,
date: new Date("01/01/2012")
},
{
value: 20,
date: new Date("01/04/2012")
},
{
value: 30,
date: new Date("01/07/2012")
}
]
}],
valueAxis: {
min: 0,
max: 100,
majorUnit: 10,
line: {
visible: false,
},
labels: {
format: "{0}%"
},
},
categoryAxis: {
labels: { dateFormats: { days: "d" } },
baseUnitStep: 1,
type: "date",
justified: true,
baseUnit: "days",
}
}); |
Partager