动态排序柱状图,先看看效果吧:视频地址:https://www.bilibili.com/video/BV1GA411u7tx
后端代码https://gitee.com/tigerxue/springboot-echarts-examples/tree/master/tompai-parent/tompai-echart
具体前端代码:
<!DOCTYPE html>
<html style="height: 100%" lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>ECharts</title>
<!-- 引入jquery -->
<script type="text/javascript"
th:src="@{/ajax/libs/jquery/3.5.0/dist/jquery.min.js}"></script>
<!-- 引入 echarts