【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

相关文章

SpringBoot使用Apache POI库读取Excel文件的操作详解

《SpringBoot使用ApachePOI库读取Excel文件的操作详解》在日常开发中,我们经常需要处理Excel文件中的数据,无论是从数据库导入数据、处理数据报表,还是批量生成数据,都可能会遇到... 目录项目背景依赖导入读取Excel模板的实现代码实现代码解析ExcelDemoInfoDTO 数据传输

java poi实现Excel多级表头导出方式(多级表头,复杂表头)

《javapoi实现Excel多级表头导出方式(多级表头,复杂表头)》文章介绍了使用javapoi库实现Excel多级表头导出的方法,通过主代码、合并单元格、设置表头单元格宽度、填充数据、web下载... 目录Java poi实现Excel多级表头导出(多级表头,复杂表头)上代码1.主代码2.合并单元格3.

C#图表开发之Chart详解

《C#图表开发之Chart详解》C#中的Chart控件用于开发图表功能,具有Series和ChartArea两个重要属性,Series属性是SeriesCollection类型,包含多个Series对... 目录OverviChina编程ewSeries类总结OverviewC#中,开发图表功能的控件是Char

Java实现批量化操作Excel文件的示例代码

《Java实现批量化操作Excel文件的示例代码》在操作Excel的场景中,通常会有一些针对Excel的批量操作,这篇文章主要为大家详细介绍了如何使用GcExcel实现批量化操作Excel,感兴趣的可... 目录前言 | 问题背景什么是GcExcel场景1 批量导入Excel文件,并读取特定区域的数据场景2

.NET利用C#字节流动态操作Excel文件

《.NET利用C#字节流动态操作Excel文件》在.NET开发中,通过字节流动态操作Excel文件提供了一种高效且灵活的方式处理数据,本文将演示如何在.NET平台使用C#通过字节流创建,读取,编辑及保... 目录用C#创建并保存Excel工作簿为字节流用C#通过字节流直接读取Excel文件数据用C#通过字节

C#关闭指定时间段的Excel进程的方法

private DateTime beforeTime;            //Excel启动之前时间          private DateTime afterTime;               //Excel启动之后时间          //举例          beforeTime = DateTime.Now;          Excel.Applicat

excel翻译软件有哪些?如何高效提翻译?

你是否曾在面对满屏的英文Excel表格时感到头疼?项目报告、数据分析、财务报表... 当这些重要的信息被语言壁垒阻挡时,效率和理解度都会大打折扣。别担心,只需3分钟,我将带你轻松解锁excel翻译成中文的秘籍。 无论是职场新人还是老手,这一技巧都将是你的得力助手,让你在信息的海洋中畅游无阻。 方法一:使用同声传译王软件 同声传译王是一款专业的翻译软件,它支持多种语言翻译,可以excel

终于解决了excel操作及cspreadsheet.h问题

困扰多日的excel操作问题终于解决:利用cspreadsheet.h!在vs2005下,不能直接应用cspreadsheet.h,所以必须解决些问题先。 首先, 出现暴多错误。解决UNICODE问题,全部添加L。 [1] +++++++++++++++++++ 其次, 出现问题: error   C2664:   'SQLGetInstalledDriversW '

关于使用cspreadsheet读写EXCEL表格数据的问题

前几天项目有读写EXCEL表格的需求,我就找了大概有几种,大致分为:COM方法、ODBC方法、OLE方法、纯底层格式分析方法。由于COM方法要求必须安装有OFFICE的EXCEL组件,纯底层格式分析方法又很多功能需要自行去完善,所有最终选择了数据库的方法,用数据库的方法去存取xls格式的数据。网上有一个高手写的CSpreedSheet,看了一下提供的接口,感觉挺好用的。在使用的过程中发现几个

Excel和Word日常使用记录:

Excel使用总结 表格颜色填充: 合并单元格: 选中你要合并的单元格区域。按下快捷键 Alt + H,然后松开这些键。再按下 M,接着按 C。这个组合键执行的操作是:Alt + H:打开“主页”选项卡。M:选择“合并单元格”选项。C:执行“合并并居中”操作。 插入行: 在Excel中,插入一行的快捷键是:Windows:选择整行(可以点击行号)。按下 Ctrl + Sh