E-Chart圖

1、tooltip:鼠標移動到圖上展現的文字數組

  1.     屬性trigger(String類型)爲"item"時,爲單個的一條,爲「axis」時,爲全部的數據,爲「formatter」時,爲自定義



2、color:顏色(數組)orm



3、legend:說明欄cdn

  1.     屬性x、y(String類型)能夠用來控制擺放的位置,x(right,left),y(top,bottom)


4、xAxis:橫座標blog

  1. 屬性data(數組)爲橫座標值
  2. 屬性axisLabel下的interval用來控制橫座標是否顯示完整



5、yAxis:縱座標事件



6、series:值ip


  1. 屬性barGap(String類型):柱狀圖之間的距離
  2. 屬性barWidth(String類型):柱狀圖柱子的寬度
  3. 屬性type(String類型):圖的類型(line--折線圖,bar--柱狀圖,pie--餅圖)
  4. 屬性stack(String類型):全部數據的stack值都同樣時,爲摺疊圖;不同時,爲一個單位多個柱子
  5. 屬性radius(數組):餅狀圖的大小
  6. 屬性center(數組):餅狀圖的位置
  7. 屬性label下:
       7.1. normal下的show(Boolean類型)爲true時,展現餅圖中心的文字,爲false時不展現

       7.2. normal下position(String類型),爲文字展現的位置,通常爲「center」it




7、graphic:io

  1. 屬性type(String類型):內容的類型
  2. 屬性left、right(String類型):內容的位置(水平方向)
  3. 屬性top、bottom(String類型):內容的位置(垂直方向)
  4. 屬性style:內容的樣式
        4.1. 屬性text:內容

        4.2. 屬性textAlign:文字方向
form


8、給e-chart圖添加點擊事件:onEventsclass


相關文章
相關標籤/搜索