1 基于Echars图表数据分析(HTML部分:创建div-->调用js)

{% for main in main_count %}
    <div id="{{ main|safe }}" style="width:1280px;height:850px;"></div>
{% endfor %}

<script type="text/javascript">
    var i = 0;
    getId = function () {
        return i++;
    };
    var j = 0;
    getIdj = function () {
        return j++;
    };
    //get_jobname = function (i){
    //    var name = new Array();
    //   name={{ jobname|safe }};
    //return name[i];
    //};
    window.onload=function(){
        {% for tmp_one in data_pie %}
            pie_js({{ tmp_one|safe }},getId());
        {% endfor %}
    }
</script>
View Code

相关文章:

  • 2021-12-03
  • 2021-07-23
  • 2021-07-16
  • 2021-04-01
  • 2022-01-08
  • 2021-08-31
  • 2021-11-02
  • 2021-12-29
猜你喜欢
  • 2022-02-01
  • 2021-06-03
  • 2021-05-19
  • 2021-12-18
  • 2021-12-30
  • 2021-12-22
  • 2021-04-28
相关资源
相似解决方案