Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.25 KB

userguide.md

File metadata and controls

42 lines (29 loc) · 1.25 KB

Introduction

The echarts-widget is a WireCloud widget that provides an easy way to to create interactive charts/graphs using the ECharts Library.

Settings

There are no settings defined in this widget.

Wiring

Input Endpoints

  • EChart options: Load new ECharts options JSON.

This endpoint expects to receive an ECharts option JSON

Output Endpoints

There are no output endpoints defined in this widget.

Usage

Send to EChart options endpoint an ECharts option JSON, for example, a simple linear chart:

{
    "xAxis": {
        "type": "category",
        "data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
    },
    "yAxis": {
        "type": "value"
    },
    "series": [{
        "data": [820, 932, 901, 934, 1290, 1330, 1320],
        "type": "line"
    }]
}

See more ECharts examples in ECharts Examples Site.