Sign inSign up

Draggable Chart for Difference Statistics (Reservation Count Statistics)

Add-ons
2026-07-26 04:18 3 views • 0 downloads 3.1KB
Draggable Chart for Difference Statistics (Reservation Count Statistics)

This plugin was independently developed from scratch and is open source.

Modify the initColmH setting in zhuzhi.js to set the chart height; max sets the maximum value on the chart, and setMax sets the draggable pointer value on the Y-axis. Note that it must be less than max.

Initialize the array X containing the estimated number of on-site ticket buyers. The chart displays one group of bars for each data item.

1. Configure Chart Dimensions in zhuzi.js

1
2
3
var initColmH=400,// Column height
max = 1050,// Maximum value
setMax = 1000;

2. Array x = []: Initial values for on-site reservations

3. Each bar in zhuzhi.html corresponds to a section of the following code.

1
2
3
4
5
6
7
8
<div>
<div>
<div><span>450</span></div>
<div></div>
<div></div>
</div>
<div></div>
</div>

Keep as many code sections as there are data groups.