Getting Started

Performance !!!

Chart Data

Bar and Column Charts

Line and Area Charts

Pie and Funnel Charts

Scatter and Bubble Charts

Radar and Polar Charts

Financial Charts

Gantt Charts

Combinational Charts

Dynamic Charts

Working with Chart Axes

Chart Features

Customizing Chart

Client-Side Events

Events:
Event 'data' parameter contains:

This sample shows the AxisLabel mouse events supported by jqChart:

- axisLabelMouseEnter
- axisLabelMouseLeave
- axisLabelMouseMove
- axisLabelMouseDown
- axisLabelMouseUp

For detailed implementation, please take a look at the HTML code tab.
 
<!DOCTYPE html>
<html>
<head>
	<title>
    AxisLabel Mouse Events Example - HTML5 jQuery Chart Plugin by jqChart
</title>
	<link rel="stylesheet" type="text/css" href="../../css/jquery.jqChart.css" />
	<link rel="stylesheet" type="text/css" href="../../themes/le-frog/styles.css" />
	<script src="../../js/jquery-1.11.1.min.js" type="text/javascript"></script>
	<script src="../../js/jquery.jqChart.min.js" type="text/javascript"></script>
	
    <script lang="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#jqChart').jqChart({
                title: "AxisLabel Mouse Events",
                legend: { visible: false },
                animation: { duration: 1 },
                axes: [
                    {
                        location: 'left',
                        labels: { cursor: 'pointer' }
                    },
                    {
                        location: 'bottom',
                        labels: { cursor: 'pointer' }
                    }
                ],
                series: [
                    {
                        type: 'column',
                        title: 'Column',
                        data: [['A', 46], ['B', 35], ['C', 68], ['D', 30],
                               ['E', 27], ['F', 85], ['D', 43], ['H', 29]]
                    }
                ]
            });

            var eventsDiv = document.getElementById('eventsDiv');

            $('#jqChart').bind('axisLabelMouseEnter', function (e, data) {
                $(eventsDiv).append('<div>axisLabelMouseEnter</div>');
                eventsDiv.scrollTop = eventsDiv.scrollHeight;

                displayDataOptions(data);
            });

            $('#jqChart').bind('axisLabelMouseLeave', function (e, data) {
                $(eventsDiv).append('<div>axisLabelMouseLeave</div>');
                eventsDiv.scrollTop = eventsDiv.scrollHeight;
            });

            $('#jqChart').bind('axisLabelMouseMove', function (e, data) {
                $(eventsDiv).append('<div>axisLabelMouseMove</div>');
                eventsDiv.scrollTop = eventsDiv.scrollHeight;
            });

            $('#jqChart').bind('axisLabelMouseDown', function (e, data) {
                $(eventsDiv).append('<div>axisLabelMouseDown</div>');
                eventsDiv.scrollTop = eventsDiv.scrollHeight;
            });

            $('#jqChart').bind('axisLabelMouseUp', function (e, data) {
                $(eventsDiv).append('<div>axisLabelMouseUp</div>');
                eventsDiv.scrollTop = eventsDiv.scrollHeight;
            });
        });

        function displayDataOptions(data) {
            var list = $('#listBlock');
            list.children().remove();

            list.append('<li>data.text=' + data.text + '</li>');
            list.append('<li>data.chart=' + data.chart + '</li>');
            list.append('<li>data.axis=' + data.axis + '</li>');
            list.append('<li>data.shape=' + data.shape + '</li>');
        }
    </script>

</head>
<body>
    <div>
        <table>
            <tr>
                <td>
                    <div id="jqChart" style="width: 400px; height: 300px;">
                    </div>
                </td>
                <td>
                    <b>Events:</b><br />
                    <div id="eventsDiv" class="box" style="width: 160px; height: 250px; overflow: auto;
                        border: 1px solid #E2EFDE; padding: 10px">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <b>Event 'data' parameter contains:</b>
        <ul id='listBlock'>
        </ul>
    </div>
</body>
</html>