From bed6a386821919c49c8cabdd7116cdd33e57fca3 Mon Sep 17 00:00:00 2001 From: kener Date: Thu, 30 Oct 2014 14:31:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/doc-en.html | 68 ++++++++++++++++++++++++------------------------- index-en.html | 6 ++--- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/doc/doc-en.html b/doc/doc-en.html index 8fe40c1b9..1553c02a4 100644 --- a/doc/doc-en.html +++ b/doc/doc-en.html @@ -445,7 +445,7 @@

We offer you various ways to import the ECharts library in your page, so that you can always choose the right one for your project.

modular package import

-

If you are familiar with modular programming, and your project is modular and follows the AMD module specification, then it will be fairly easy to import echarts in your page; just configure the packet path to point to src, and you will enjoy the chart’s maximum flexibility, such as load-on-demand. Since ECharts is based on ZRender, you also need to download ZRender locally. Reference is made to demo. Now you need to configure as follows.

+

If you are familiar with modular programming, and your project is modular and follows the AMD module specification, then it will be fairly easy to import echarts in your page; just configure the packet path to point to src, and you will enjoy the chart’s maximum flexibility, such as load-on-demand. Since ECharts is based on ZRender, you also need to download ZRender locally. Reference is made to demo. Now you need to configure as follows.

Please note: although package import maximizes flexibility in the development phase, it is not intended for going online directly. Reducing the number of documents requested is the most fundamental rule of front-end optimization, so please be sure to compress files when you go on line.

//from echarts example
@@ -672,7 +672,7 @@ require(['echarts'], function (ec){
                                 
Add multiple sets of data:
{Array} params - Dynamic data interface. Try this (Line & Bar) » Try this (Scatter & Candlestick) » Try this (Pie & Radar) » + Dynamic data interface. Try this (Line & Bar) » Try this (Scatter & Candlestick) » Try this (Pie & Radar) »
seriesIdx: series index
data: adds data
isHead: whether to insert at the head of the line. Defaults to unspecified. When unspecified or false, insert at the end of the line. @@ -731,7 +731,7 @@ require(['echarts'], function (ec){
MAGIC_TYPE_CHANGED, TIMELINE_CHANGED,
DATA_ZOOM, DATA_RANGE, MAP_ROAM,
LEGEND_SELECTED, MAP_SELECTED, PIE_SELECTED -
event debugging » +
event debugging » @@ -750,7 +750,7 @@ require(['echarts'], function (ec){ Chart Linkage, the linkage target passed in is ECharts instance, supports arrays. Supports tooltip linkage in Cartesian charts, automatic stitching of the saved images. The supported linkage events are:
REFRESH,RESTORE,MAGIC_TYPE_CHANGED
DATA_ZOOM,DATA_RANGE,LEGEND_SELECTED -
Chart Linkage » +
Chart Linkage » @@ -761,7 +761,7 @@ require(['echarts'], function (ec){ {self} showLoading {Object} loadingOption - Option for the loading screen, (see loadingOption), show a loading label text. try this » + Option for the loading screen, (see loadingOption), show a loading label text. try this » {self} hideLoading @@ -904,7 +904,7 @@ require(['echarts'], function (ec){

timeline

-

timeline, at most one timeline control is allowed in one chart. Try bar », scatter », pie », map »

+

timeline, at most one timeline control is allowed in one chart. Try bar », scatter », pie », map »

@@ -1178,7 +1178,7 @@ require(['echarts'], function (ec){

toolbox

-

Toolbox, at most one toolbox is allowed in one chart. Try this »

+

Toolbox, at most one toolbox is allowed in one chart. Try this »

Property
@@ -1311,7 +1311,7 @@ require(['echarts'], function (ec){ } } -
Property Currently toolbox supports all the features listed below. For custom features, try this » + Currently toolbox supports all the features listed below. For custom features, try this »

toolbox

  • @@ -1357,7 +1357,7 @@ require(['echarts'], function (ec){

    tooltip

    -

    Tooltip, a small "hover box" with detailed information about the item being hovered over. Try this »

    +

    Tooltip, a small "hover box" with detailed information about the item being hovered over. Try this »

    @@ -1455,7 +1455,7 @@ require(['echarts'], function (ec){
    Property style for the tooltip text. Defaults to white, (see textStyle).
    -

    content formatter:Try this »

    +

    content formatter:Try this »

    • {string}, Template, its variables are: @@ -1507,7 +1507,7 @@ require(['echarts'], function (ec){

      legend

      -

      legend, at most one legend is allowed in one chart. Try this »

      +

      legend, at most one legend is allowed in one chart. Try this »

      @@ -1582,7 +1582,7 @@ require(['echarts'], function (ec){ - + @@ -1597,7 +1597,7 @@ require(['echarts'], function (ec){

      legend

      dataRange

      -

      dataRange, at most one dataRange control is allowed in one chart. Try this »

      +

      dataRange, at most one dataRange control is allowed in one chart. Try this »

      Property
      {Object} selected null The default selected state, can be used to conduct dynamic data loading with LEGEND.SELECTED event, try this » The default selected state, can be used to conduct dynamic data loading with LEGEND.SELECTED event, try this »
      {Array} data
      @@ -1692,7 +1692,7 @@ require(['echarts'], function (ec){ - + @@ -1709,7 +1709,7 @@ require(['echarts'], function (ec){

      dataZoom

      -

      dataZoom. Synchronized with toolbox.feature.dataZoom. Applicable to Cartesian chart only. Try this »

      +

      dataZoom. Synchronized with toolbox.feature.dataZoom. Applicable to Cartesian chart only. Try this »

      Property
      {string | Function} formatter null content formatter:{string} (Template) | {Function}, the template's variables are {value}' and '{value2}', which stand for start value ​​and end value. There are two function parameters, whose meanings are the same as template variables. Try this » content formatter:{string} (Template) | {Function}, the template's variables are {value}' and '{value2}', which stand for start value ​​and end value. There are two function parameters, whose meanings are the same as template variables. Try this »
      {Array} text
      @@ -1800,7 +1800,7 @@ require(['echarts'], function (ec){

      dataZoom

      roamController

      -

      Zoom and roam controller for the map. try this »

      +

      Zoom and roam controller for the map. try this »

      Property
      @@ -1947,7 +1947,7 @@ require(['echarts'], function (ec){
    • category axis: specifies the category list. The only axis that the data is organized by.
    • value axis: specifies the valid values. The only axis where the values are placed.
    • -

      Here are the options for coordinate axes. Some options are applicable to category axis only, while others to value axis only. Please heed the type of application. Try this »

      +

      Here are the options for coordinate axes. Some options are applicable to category axis only, while others to value axis only. Please heed the type of application. Try this »

      Property
      @@ -2554,7 +2554,7 @@ indicator : [ 'emptyCircle' | 'emptyRectangle' | 'emptyTriangle' | 'emptyDiamond'
      Other possible values are 'heart', 'droplet', 'pin', 'arrow' and 'star'. Although They are not included in the regular eight symbols above, you can use them at both series and data level. In addition, you can use 'star' + n (n>=3) to get N-pointed star, like 'star6' for six-pointed star.
      Since 1.3.5, ECharts added support for setting custom image as symbol. The URL to an image can be given on this form:'image://' + 'URL', such as 'image://../asset/ico/favicon.png'. -
      See example 》 +
      See example 》 @@ -2695,7 +2695,7 @@ indicator : [
      广东, 吉林, 河北, 湖北, 贵州, 山东, 江西, 河南, 辽宁, 山西, 安徽, 福建,
      浙江, 江苏, 重庆, 宁夏, 海南, 台湾, 北京, 天津, 上海, 香港, 澳门'
      Supports sub-region mode, which develops sub-region maps from the main map types. The format is 'main map type | sub-region name', like -
      'world|Brazil', 'china|广东'. See example 》 +
      'world|Brazil', 'china|广东'. See example 》 @@ -3381,7 +3381,7 @@ indicator : [
      color: color of the glow. The default value is pulled from the markPoint itemStyle array.
      shadowColor: color of the shadow. The default value is pulled from the color array.
      shadowBlur: blur degree of shadow. Defaults to 0. -
      Baidu Migration (Simulation) » +
      Baidu Migration (Simulation) » @@ -3484,7 +3484,7 @@ geoCoord : {
      color: color of the glow. The default value is pulled from the markLine itemStyle array.
      shadowColor: color of the shadow. The default value is pulled from the color array.
      shadowBlur: blur degree of shadow. The default value is based on scaleSize. -
      Baidu Migration (Simulation) » +
      Baidu Migration (Simulation) » @@ -3766,16 +3766,16 @@ geoCoord : {

      high customizability:

      - line try this », - column try this », - candlestick try this », - scatter try this », - pie try this », - chord try this », - force try this », - map try this », - gauge try this », - funnel try this » + line try this », + column try this », + candlestick try this », + scatter try this », + pie try this », + chord try this », + force try this », + map try this », + gauge try this », + funnel try this »

      lineStyle

      @@ -3960,7 +3960,7 @@ geoCoord : {
      Name

      loadingOption

      -

      The loading options control the appearance of the loading screen that covers the plot area on chart operations. Try this »

      +

      The loading options control the appearance of the loading screen that covers the plot area on chart operations. Try this »

      @@ -4082,7 +4082,7 @@ geoCoord : {

      multi-level control

      Appendix: Map Extension

      -

      Supports extended map on GeoJson format. Try HK 》 USA 》

      +

      Supports extended map on GeoJson format. Try HK 》 USA 》

       // step1: find the geoJson data file in the target region, like HK_geo.json.
      @@ -4479,7 +4479,7 @@ option.series = [
                           
      Property

      Appendix: an Intuitive Example

      -

      For more examples, click example. Use this demo or ECharts single file import as your template.

      +

      For more examples, click example. Use this demo or ECharts single file import as your template.

      // instantiate the chart------------------
       // script tabbed import
      diff --git a/index-en.html b/index-en.html
      index c1087b7d0..d9be22bbf 100644
      --- a/index-en.html
      +++ b/index-en.html
      @@ -50,7 +50,7 @@
                 
      @@ -60,7 +60,7 @@
                 
      @@ -70,7 +70,7 @@
                 
      -- 
      GitLab