【GH】【EXCEL】P4: Chart

data and chart

image-20240820003409679

donut chart (radial chart)

A Chart object can be quickly added to a Worksheet by referencing data from a Range

Radial Chart

image-20240820003721114


Add a Radial Chart object


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name

  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)

  • Name (Text) The title of the chart

  • Boundary (Rectangle) The Shape bounding rectangle

  • Flip (Boolean) If true, the data will be read by column

  • Chart Type (Integer) The chart type

    Pie
    Pie3D
    Donut
    Radar
    Radar Filled

  • Activate (Boolean) If true, the component will be activated

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • Chart (Generic Data) A Chart object

bar chart

Chart graphics can be updated by series or by cell.

Bar Chart

image-20240820004200844


Add a Bar Chart object


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name

  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)

  • Name (Text) The title of the chart

  • Boundary (Rectangle) The Shape bounding rectangle

  • Flip (Boolean) If true, the data will be read by column

  • Chart Type (Integer) The chart type

    Basic
    Box
    Pyramid
    Cylinder
    Cone

  • Alignment Type (Integer) The chart alignment type

    Cluster
    Stack
    Fill

  • Activate (Boolean) If true, the component will be activated

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • Chart (Generic Data) A Chart object

line chart

Chart properties can be modified on a placed Chart.

Line Chart

image-20240820004610323


Add a Line Chart object


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name

  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)

  • Name (Text) The title of the chart

  • Boundary (Rectangle) The Shape bounding rectangle

  • Flip (Boolean) If true, the data will be read by column

  • Chart Type (Integer) The chart type

    Line
    LineMarkers
    Area
    Area3d

  • Alignment Type (Integer) The chart alignment type

    Cluster
    Stack
    Fill

  • Activate (Boolean) If true, the component will be activated

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • Chart (Generic Data) A Chart object

Scatter Chart

Scatter Chart

image-20240820221909538


Add a Scatter Chart object


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name

  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)

  • Name (Text) The title of the chart

  • Boundary (Rectangle) The Shape bounding rectangle

  • Flip (Boolean) If true, the data will be read by column

  • Chart Type (Integer) The chart type

    Scatter
    Scatter Lines
    Scatter Smooth
    Bubble
    Bubble 3D

  • Activate (Boolean) If true, the component will be activated

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • Chart (Generic Data) A Chart object

Surface Chart

Surface Chart

image-20240820222215425


Add a Surface Chart object


Input parameters:

  • Worksheet (Generic Data) A Worksheet, Workbook, Range Object, Excel Application, or Text Worksheet Name

  • Range (Generic Data) A Range Object or Text Address (ex. A1:B1)

  • Name (Text) The title of the chart

  • Boundary (Rectangle) The Shape bounding rectangle

  • Flip (Boolean) If true, the data will be read by column

  • Chart Type (Integer) The chart type

    Surface
    SurfaceVireframe
    SurfaceTop
    SurfaceWireframeTop

  • Activate (Boolean) If true, the component will be activated

Output parameters:

  • Range (Generic Data) An Excel Range Object
  • Chart (Generic Data) A Chart object

Chart Decorators

Chart Decorators

image-20240820223225538


Update Chart Decorations


Input parameters:

  • Chart (Generic Data) A Chart object
  • Title (Text) Title
  • Legend Location (Integer) The location of the legend
  • Data Label (Integer) The data label type
  • Grid X (Integer) The X axis Grid settings
  • Grid Y (Integer) The Y axis Grid settings
  • Axis X (Text) An optional X axis label
  • Axis Y (Text) An optional Y axis label

Output parameters:

  • Chart (Generic Data) A Chart object

Chart Graphics

Chart Graphics

image-20240820223319079


Update Chart Graphics


Input parameters:
Chart (Generic Data) A Chart object

By Series (Boolean) If true, values are plotted by series otherwise colors will be by point

Fill Colors (Colour) Chart fill colors S

troke Colors (Colour) Chart stroke colors S

troke Weights (Integer) Chart stroke weights 0-3

  • 19
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hmywillstronger

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值