|
<ejs-chart id="lineContainer" legendClick="legendClick" title="Weather condition JPN vs DEU" load="window.onChartLoad">
// add your additional code here
</ejs-chart>
// add your additional code here
function legendClick(args) {
for (var i = 0; i < args.chart.axisCollections.length; i++) {
if (args.series.yAxisName == args.chart.axisCollections[i].name) {
args.chart.axisCollections[i].visible = args.series.visible;
args.chart.refresh();
}
}
}; |
|
<ejs-chart width="92%" height="450px" id="lineContainer" loaded="loaded" legendClick="legendClick" title="Weather condition JPN vs DEU">
// add your additional code here
</ejs-chart>
// add your additional code here
function loaded(args) {
var chart = document.getElementById("lineContainer");
chart.scrollTop = chart.scrollHeight;
} |
|
<div style="height: 600px"></div>
<ejs-chart id="lineContainer" loaded="loaded" legendClick="legendClick" >
// add your code snippet
</ejs-chart>
<script>
// add your code snippet
function loaded(args) {
document.getElementById('lineContainer').scrollIntoView();
}
// add your code snippet
</script> |