From a7b3048d68c182ecf15fabb2bc3ad2e4ea062a1f Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 19 Feb 2016 15:33:23 +0800 Subject: [PATCH] =?UTF-8?q?echarts=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- document/echarts.md | 23 ++++++++++++++++++++++- document/echarts_plot.md | 1 + readme.md | 4 ++-- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 document/echarts_plot.md diff --git a/document/echarts.md b/document/echarts.md index b642159..bf3bc8b 100644 --- a/document/echarts.md +++ b/document/echarts.md @@ -1 +1,22 @@ -# ECharts类介绍 \ No newline at end of file +# ECharts类介绍 + +ECharts是`com.fr.chart.chartattr.Chart`的子类,需要实现几个重要的方法 + +两个构造方法,一个为不带参数,一个为带[EChartsPlot](echarts_plot.md)参数 + + +// 生成图表配置属性的方法,最终用于生成一个JSON格式的数据到web端 + +`public BaseChartGlyph createGlyph(ChartData chartData) ` + +// 判断能够接收的图表类型 + +`public boolean accept(Class obClass)` + +// 读取xml中相关配置 + +`protected void readChartXML(XMLableReader reader)` + +// 各种设置信息保存到xml文件中 + +`public void writeXML(XMLPrintWriter writer)` \ No newline at end of file diff --git a/document/echarts_plot.md b/document/echarts_plot.md new file mode 100644 index 0000000..edf8223 --- /dev/null +++ b/document/echarts_plot.md @@ -0,0 +1 @@ +# EChartsPlot类介绍 \ No newline at end of file diff --git a/readme.md b/readme.md index c6ee204..ecf3555 100644 --- a/readme.md +++ b/readme.md @@ -2,11 +2,11 @@ ## 关键接口解释 -1. `IndependentChartProvider` +`IndependentChartProvider` 介绍:该接口的作用是扩展图表类型引擎部分,一般继承`AbstractIndependentEChartsProvider`就可以了 -2. `IndependentChartUIProvider` +`IndependentChartUIProvider` 介绍:该接口的作用是扩展图表类型的设计器部分,一般继承`AbstractIndependentEChartsUI`就可以了