Hello,
I want to show a first chart with a datasource pagesize, then another with same datasource but another pagesize.
When trying following, I can see first chart show my first pagesize, then, when second chart shows, first chart pagesize is change to second page size.
see following example:
function createChart() {
myData.pageSize(20);
$("#MyChart").kendoChart({
dataSource: myData,
series: [{type: "bar",field: "nb",categoryField: "name",name: "#= group.value #",markers: {visible: true,size: 1},aggregate : "avg",},],
legend: {position: "bottom",labels: {template: "my name"}},
valueAxis: {visible:false,labels: {format: "{0}", step:3},majorGridLines: {visible: false},majorTicks: {visible: false},format: "{0}%",},
categoryAxis: {field: "my field",majorGridLines:{visible: false},majorTicks:{visible: false},},
tooltip: {visible: true,template: "#=category #: #= value #"},
transitions: true,
});
myData.pageSize(50);
$("#MyChart").kendoChart({
dataSource: myData,
series: [{type: "bar",field: "nb",categoryField: "name",name: "#= group.value #",markers: {visible: true,size: 1},aggregate : "avg",},],
legend: {position: "bottom",labels: {template: "my name"}},
valueAxis: {visible:false,labels: {format: "{0}", step:3},majorGridLines: {visible: false},majorTicks: {visible: false},format: "{0}%",},
categoryAxis: {field: "my field",majorGridLines:{visible: false},majorTicks:{visible: false},},
tooltip: {visible: true,template: "#=category #: #= value #"},
transitions: true,
});
}
$(document).ready(function() {
createChart();
});
Thank you,
Dan
I want to show a first chart with a datasource pagesize, then another with same datasource but another pagesize.
When trying following, I can see first chart show my first pagesize, then, when second chart shows, first chart pagesize is change to second page size.
see following example:
function createChart() {
myData.pageSize(20);
$("#MyChart").kendoChart({
dataSource: myData,
series: [{type: "bar",field: "nb",categoryField: "name",name: "#= group.value #",markers: {visible: true,size: 1},aggregate : "avg",},],
legend: {position: "bottom",labels: {template: "my name"}},
valueAxis: {visible:false,labels: {format: "{0}", step:3},majorGridLines: {visible: false},majorTicks: {visible: false},format: "{0}%",},
categoryAxis: {field: "my field",majorGridLines:{visible: false},majorTicks:{visible: false},},
tooltip: {visible: true,template: "#=category #: #= value #"},
transitions: true,
});
myData.pageSize(50);
$("#MyChart").kendoChart({
dataSource: myData,
series: [{type: "bar",field: "nb",categoryField: "name",name: "#= group.value #",markers: {visible: true,size: 1},aggregate : "avg",},],
legend: {position: "bottom",labels: {template: "my name"}},
valueAxis: {visible:false,labels: {format: "{0}", step:3},majorGridLines: {visible: false},majorTicks: {visible: false},format: "{0}%",},
categoryAxis: {field: "my field",majorGridLines:{visible: false},majorTicks:{visible: false},},
tooltip: {visible: true,template: "#=category #: #= value #"},
transitions: true,
});
}
$(document).ready(function() {
createChart();
});
Thank you,
Dan