![]() |
VOOZH | about |
jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. jqxChart is a lightweight and powerful chart widget written 100% in JavaScript. It offers many advanced features and supports three different rendering technologies - SVG, HTML5 Canvas & VML.
The toggle event is triggered when the user clicks on the chart legends.
Syntax:
$('.jqxChart').on('toggle', function (){
// Code
});
Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.
<link type="text/css" rel="Stylesheet" href="jqwidgets/styles/jqx.base.css" />
<script type="text/javascript" src="scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="jqwidgets/globalization/globalize.js"></script>
<script type="text/javascript" src="jqwidgets/jqxsortable.js"></script>
Example: The below example illustrates the jqxChart toggle event in jQWidgets.
Output:
👁 Image