• 折线图


    TD - 折线图模板

    //加载折线图

        load_line_diagram:function(){

            var item = {};

            var myChart = easy7.line.init(document.getElementById('lineDiagram'));

            //横轴

            var xData = ["1","2","3","4","5","6","7","8","9","10","11","12"];

            //纵轴

            var yData = [];

            var item1 = [1,2,3,4,5,6,7,8,9,1,1,2];//第一条线的内容

            var item2 = [11,12,13,14,15,16,17,18,9,11,3,2];//第二条线的内容

            yData[0] = item1;

            yData[1] = item2;

     

            item.xData = xData;

            item.yData = yData;

            item.name = "item.name";

            item.legend = [this.nls.TODAY,this.nls.MONTH];//线条名称

            

            var option = {

                title: {

                    x: 'left',

                    text: "",

                    show:false

                },

                toolbox: {

                    show: false,

                    feature: {

                        dataView: {show: true, readOnly: false},

                        restore: {show: true},

                        saveAsImage: {show: true}

                    }

                }

            };

            easy7.initEChartsLinesOption(option,item);

            // 为echarts对象加载数据

            myChart.setOption(option);

        },

  • 相关阅读:
    Runtime类
    使用序列化和对象流实现对象的序列化
    Object类
    ThreadLocal
    Java Inner Class 内部类
    css中的:before与:after的简单使用
    JS事件(事件冒泡和事件捕获)
    js call apply bind简单的理解
    JS创建对象
    apache common-io.jar FileUtils
  • 原文地址:https://www.cnblogs.com/7q4w1e/p/9549496.html
Copyright © 2020-2023  润新知