【GH】【EXCEL】P4: Chart

2024-08-21 01:20
文章标签 excel chart p4 gh

本文主要是介绍【GH】【EXCEL】P4: Chart,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文章目录

  • data and chart
    • donut chart (radial chart)
      • Radial Chart
    • bar chart
      • Bar Chart
    • line chart
      • Line Chart
    • Scatter Chart
      • Scatter Chart
    • Surface Chart
      • Surface Chart
    • Chart Decorators
      • Chart Decorators
    • Chart Graphics
      • Chart Graphics

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

这篇关于【GH】【EXCEL】P4: Chart的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1091716

相关文章

java中使用POI生成Excel并导出过程

《java中使用POI生成Excel并导出过程》:本文主要介绍java中使用POI生成Excel并导出过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录需求说明及实现方式需求完成通用代码版本1版本2结果展示type参数为atype参数为b总结注:本文章中代码均为

利用Python开发Markdown表格结构转换为Excel工具

《利用Python开发Markdown表格结构转换为Excel工具》在数据管理和文档编写过程中,我们经常使用Markdown来记录表格数据,但它没有Excel使用方便,所以本文将使用Python编写一... 目录1.完整代码2. 项目概述3. 代码解析3.1 依赖库3.2 GUI 设计3.3 解析 Mark

Java利用poi实现word表格转excel

《Java利用poi实现word表格转excel》这篇文章主要为大家详细介绍了Java如何利用poi实现word表格转excel,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 一、每行对象类需要针对不同的表格进行对应的创建。package org.example.wordToEx

利用Python实现添加或读取Excel公式

《利用Python实现添加或读取Excel公式》Excel公式是数据处理的核心工具,从简单的加减运算到复杂的逻辑判断,掌握基础语法是高效工作的起点,下面我们就来看看如何使用Python进行Excel公... 目录python Excel 库安装Python 在 Excel 中添加公式/函数Python 读取

基于Python开发批量提取Excel图片的小工具

《基于Python开发批量提取Excel图片的小工具》这篇文章主要为大家详细介绍了如何使用Python中的openpyxl库开发一个小工具,可以实现批量提取Excel图片,有需要的小伙伴可以参考一下... 目前有一个需求,就是批量读取当前目录下所有文件夹里的Excel文件,去获取出Excel文件中的图片,并

Java导入、导出excel用法步骤保姆级教程(附封装好的工具类)

《Java导入、导出excel用法步骤保姆级教程(附封装好的工具类)》:本文主要介绍Java导入、导出excel的相关资料,讲解了使用Java和ApachePOI库将数据导出为Excel文件,包括... 目录前言一、引入Apache POI依赖二、用法&步骤2.1 创建Excel的元素2.3 样式和字体2.

使用EasyExcel实现简单的Excel表格解析操作

《使用EasyExcel实现简单的Excel表格解析操作》:本文主要介绍如何使用EasyExcel完成简单的表格解析操作,同时实现了大量数据情况下数据的分次批量入库,并记录每条数据入库的状态,感兴... 目录前言固定模板及表数据格式的解析实现Excel模板内容对应的实体类实现AnalysisEventLis

python多种数据类型输出为Excel文件

《python多种数据类型输出为Excel文件》本文主要介绍了将Python中的列表、元组、字典和集合等数据类型输出到Excel文件中,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参... 目录一.列表List二.字典dict三.集合set四.元组tuplepython中的列表、元组、字典

Python Excel实现自动添加编号

《PythonExcel实现自动添加编号》这篇文章主要为大家详细介绍了如何使用Python在Excel中实现自动添加编号效果,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1、背景介绍2、库的安装3、核心代码4、完整代码1、背景介绍简单的说,就是在Excel中有一列h=会有重复

使用Apache POI在Java中实现Excel单元格的合并

《使用ApachePOI在Java中实现Excel单元格的合并》在日常工作中,Excel是一个不可或缺的工具,尤其是在处理大量数据时,本文将介绍如何使用ApachePOI库在Java中实现Excel... 目录工具类介绍工具类代码调用示例依赖配置总结在日常工作中,Excel 是一个不可或缺的工http://