Coder Social home page Coder Social logo

echarts-aliapp's Issues

淘宝小程序问题

组件需绑定 ec 变量,例:<ec-canvas id="mychart-dom-bar",确认已经设置 ec 变量

image

canvas.setOption(option) 中的option参数是否可以使用 page.data 里的数据?

    onShareAppMessage: function(res) {  },
    data: {
        ec_data: {....}
        ec: {
            onInit: function(canvas, width, height) {
            const oChart = echarts.init(canvas, null, {
                width: width,
                height: height
            });
            canvas.setChart(this.oChart); 
            oChart.setOption(this.ec_data); // 希望在这里使用  ec_data
            return oChart;
        }
    },
    onReady() {}
});

如上面的代码, 我希望重新画图, 是否可以不用重新赋值 ec, 而是赋值 ec_data, 这样是否有什么办法?

图表不显示

demo下载下来,图表在模拟器里不显示;
”或者仅拷贝 ec-canvas 目录到新建的项目下,然后做相应的调整。“在钉钉小程序里各种报错

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.