问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

PB中动态建立Graph数据窗口时Category和value如何设置

发布网友 发布时间:2022-04-27 00:51

我来回答

1个回答

热心网友 时间:2022-06-21 23:38

Category说通俗一点就是代表图形的X轴
value就是Y轴

举个例子
月份 销售量
1 100
2 150
3 120
3 140
这时候我们要看图形的话,如果是柱状图,那就是category设置成月份
value设置成销售量

举个例子,拷贝的,你主要更改一下其中的
category='dept_id' values='avg(salary for graph)'这行
category设置成月份,value设置成你要的结果

//STEPS TO DYNAMICALLY CREATE A GRAPH IN A DATAWINDOW:
//1. Create a DataWindow that contains a graph object that is like the one that you want.
//2. Export the DataWindow object to a DOS file.
//3. Copy JUST the graph section into your script.
//4. Modify the graph section to meet your needs.
//5. Put the new graph definition into a string variable.
//NOTE: you will need to change existing quotes (") in the string to single quotes (').
//6. Code the Modify statement (see example below).

//EXAMPLE CREATING A 2D COLUMN GRAPH SHOWING AVERAGE SALARY BY DEPT.
//NOTE: Assumes that the DataWindow containing the graph has a dept_id and a salary column.

<DW Control Name>.Modify(&
"create graph(band=foreground x='220' y='38' height='1185' width='2305' graphtype='7' perspective='2' " + &
"rotation='-20' color='0' backcolor='16777215' shadecolor='8355711' range= 0 border='3' " + &
"overlappercent='0' spacing='100' elevation='20' depth='100' visible='1' name=gr_salary resizeable=1 moveable=1 " + &
"category='dept_id' values='avg(salary for graph)' title='Average Salary By Department' " + &
"title.dispattr.backcolor='553648127' title.dispattr.alignment='2' title.dispattr.autosize='1' " + &
"title.dispattr.font.charset='0' title.dispattr.font.escapement='0' title.dispattr.font.face='Tahoma' " + &
"title.dispattr.font.family='2' title.dispattr.font.height='1' title.dispattr.font.italic='0' " + &
"title.dispattr.font.orientation='0' title.dispattr.font.pitch='2' title.dispattr.font.strikethrough='0' " + &
"title.dispattr.font.underline='0' title.dispattr.font.weight='700' title.dispattr.format='[General]' " + &
"title.dispattr.textcolor='0' legend='4' legend.dispattr.backcolor='536870912' " + &
"legend.dispattr.alignment='0' legend.dispattr.autosize='1' legend.dispattr.font.charset='0' " + &
"legend.dispattr.font.escapement='0' legend.dispattr.font.face='Tahoma' legend.dispattr.font.family='2' " + &
"legend.dispattr.font.height='1' legend.dispattr.font.italic='0' legend.dispattr.font.orientation='0' " + &
"legend.dispattr.font.pitch='2' legend.dispattr.font.strikethrough='0' legend.dispattr.font.underline='0' " + &
"legend.dispattr.font.weight='400' legend.dispattr.format='[General]' legend.dispattr.textcolor='0' " + &
"series.autoscale='1' series.droplines='0' series.frame='1' series.label='(None)' " + &
"series.majordivisions='0' series.majorgridline='0' series.majortic='3' series.maximumvalue='0' " + &
"series.minimumvalue='0' series.minordivisions='0' series.minorgridline='0' series.minortic='1' " + &
"series.originline='0' series.primaryline='1' series.roundto='0' series.scaletype='1' " + &
"series.scalevalue='1' series.secondaryline='0' series.shadebackedge='0' " + &
"series.dispattr.backcolor='536870912' series.dispattr.alignment='0' series.dispattr.autosize='1' " + &
"series.dispattr.font.charset='0' series.dispattr.font.escapement='0' series.dispattr.font.face='Tahoma' " + &
"series.dispattr.font.family='2' series.dispattr.font.height='1' series.dispattr.font.italic='0' " + &
"series.dispattr.font.orientation='0' series.dispattr.font.pitch='2' series.dispattr.font.strikethrough='0' " + &
"series.dispattr.font.underline='0' series.dispattr.font.weight='400' series.dispattr.format='[General]' " + &
"series.dispattr.textcolor='0' series.labeldispattr.backcolor='553648127' " + &
"series.labeldispattr.alignment='2' series.labeldispattr.autosize='1' series.labeldispattr.font.charset='0' " + &
"series.labeldispattr.font.escapement='0' series.labeldispattr.font.face='Tahoma' " + &
"series.labeldispattr.font.family='2' series.labeldispattr.font.height='1' series.labeldispattr.font.italic='0' " + &
"series.labeldispattr.font.orientation='0' series.labeldispattr.font.pitch='2' " + &
"series.labeldispattr.font.strikethrough='0' series.labeldispattr.font.underline='0' " + &
"series.labeldispattr.font.weight='400' series.labeldispattr.format='[General]' " + &
"series.labeldispattr.textcolor='0' category.autoscale='1' category.droplines='0' category.frame='1' " + &
"category.label='Department' category.majordivisions='0' category.majorgridline='0' " + &
"category.majortic='3' category.maximumvalue='5' category.minimumvalue='0' " + &
"category.minordivisions='0' category.minorgridline='0' category.minortic='1' category.originline='0' " + &
"category.primaryline='1' category.roundto='0' category.scaletype='1' category.scalevalue='1' " + &
"category.secondaryline='0' category.shadebackedge='1' category.dispattr.backcolor='536870912' " + &
"category.dispattr.alignment='2' category.dispattr.autosize='1' category.dispattr.font.charset='0' " + &
"category.dispattr.font.escapement='0' category.dispattr.font.face='Tahoma' category.dispattr.font.family='2' " + &
"category.dispattr.font.height='1' category.dispattr.font.italic='0' category.dispattr.font.orientation='0' " + &
"category.dispattr.font.pitch='2' category.dispattr.font.strikethrough='0' " + &
"category.dispattr.font.underline='0' category.dispattr.font.weight='400' " + &
"category.dispattr.format='[General]' category.dispattr.textcolor='0' " + &
"category.labeldispattr.backcolor='553648127' category.labeldispattr.alignment='2' " + &
"category.labeldispattr.autosize='1' category.labeldispattr.font.charset='0' " + &
"category.labeldispattr.font.escapement='0' category.labeldispattr.font.face='Tahoma' " + &
"category.labeldispattr.font.family='2' category.labeldispattr.font.height='1' " + &
"category.labeldispattr.font.italic='0' category.labeldispattr.font.orientation='0' " + &
"category.labeldispattr.font.pitch='2' category.labeldispattr.font.strikethrough='0' " + &
"category.labeldispattr.font.underline='0' category.labeldispattr.font.weight='400' " + &
"category.labeldispattr.format='[General]' category.labeldispattr.textcolor='0' " + &
"values.autoscale='1' values.droplines='0' values.frame='1' values.label='Average Salary' " + &
"values.majordivisions='0' values.majorgridline='0' values.majortic='3' values.maximumvalue='1000' " + &
"values.minimumvalue='0' values.minordivisions='0' values.minorgridline='0' values.minortic='1' " + &
"values.originline='1' values.primaryline='1' values.roundto='0' values.scaletype='1' values.scalevalue='1' " + &
"values.secondaryline='0' values.shadebackedge='0' values.dispattr.backcolor='536870912' " + &
"values.dispattr.alignment='1' values.dispattr.autosize='1' values.dispattr.font.charset='0' " + &
"values.dispattr.font.escapement='0' values.dispattr.font.face='Tahoma' values.dispattr.font.family='2' " + &
"values.dispattr.font.height='1' values.dispattr.font.italic='0' values.dispattr.font.orientation='0' " + &
"values.dispattr.font.pitch='2' values.dispattr.font.strikethrough='0' values.dispattr.font.underline='0' " + &
"values.dispattr.font.weight='400' values.dispattr.format='[General]' values.dispattr.textcolor='0' " + &
"values.labeldispattr.backcolor='553648127' values.labeldispattr.alignment='2' " + &
"values.labeldispattr.autosize='1' values.labeldispattr.font.charset='0' " + &
"values.labeldispattr.font.escapement='900' values.labeldispattr.font.face='Tahoma' " + &
"values.labeldispattr.font.family='2' values.labeldispattr.font.height='1' " + &
"values.labeldispattr.font.italic='0' values.labeldispattr.font.orientation='0' " + &
"values.labeldispattr.font.pitch='2' values.labeldispattr.font.strikethrough='0' " + &
"values.labeldispattr.font.underline='0' values.labeldispattr.font.weight='400' " + &
"values.labeldispattr.format='[General]' values.labeldispattr.textcolor='0' )")
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
粒上皇开口熟栗120g*5袋(共600g)-详细介绍 三皇王板栗介绍 品牌榜:2024年板栗十大品牌排行榜 投票结果公布【新】 为什么来大姨妈胸会胀 少儿学什么舞蹈 青年学什么舞蹈好 成年人学什么舞蹈 福州企业最低工资标准 2013年厦门的底薪是多少 生产要素的需求有哪些性质 zedgraph 控件画图 给外国朋友写一篇800西游记的推荐信 怎么用codeviz 1.0.9 版在 windows + cygwin 绘制函数调用关系图 西游记推荐语刚好八十字? free pascal里的graph中都有些什么函数?怎么用的?谢谢你 这个画直线的程序如何改成任意斜率的?高手指教 请问password,cipher,crytography有什么区别? 西游记推荐词60字数 推荐寄语西游记写一段话一百字左右简单介绍? 西游记推荐词 西游记 100字推介语 西游记推荐词60字数? 《西游记》推荐词100字 为西游记写推荐词 我想学软装,可是学费这么贵,中赫时尚学校值得一去吗? 中赫时尚的《空间软装色彩设计课》讲的怎么样? 软装与家居陈列设计有什么区别?为什么分为两个课程? 软装陈设设计课程哪里最好?有在易配者学习过的吗? 请问软装培训去哪好呢? 想要学习软装设计和色彩搭配的课程,在大城市学习好是不是好一点? 在编译c++的程序时候,为什么没有i#nclude“graph.h”这个文件? 办理了ETC的建设银行卡里存钱了,怎么取出来? C++一个头文件中申明的变量如何调用另一个头文件中变量的值 英雄无敌3在WIN7系统运行无运行 误存e&#x2006;t&#x2006;c卡里的钱,还能取出来吗? 怎么看github的network graph c#中怎么样用zedgraph 绘制两个纵坐标出来呢?急求!!! hge 播放视频 http:&#47;&#47;www.pudn.com&#47;downloads525&#47;sourcecode&#47;graph&#47;opencv&#47;detail2178014.html etC上的钱怎样提现在银行卡? 求有pudn账号的帮个忙http:&#47;&#47;www.pudn.com&#47;downloads90&#47;sourcecode&#47;graph&#47;detail345446.html etc记账卡我冲的钱怎么提出来? django项目 makemigrations时出现django.db.migrations.graph.no... 你好,看到你回答一个问题,有MFC画图的保存和打开的源程序,能发给我学习下吗?谢谢~~ 有的代码在vs中没法运行在codebiock可以? 支付宝能把etc里钱转出来吗 商标制版怎么做,关于制版的问题 http:&#47;&#47;www.pudn.com&#47;downloads459&#47;sourcecode&#47;graph&#47;texture_mapping&#47;detail1931160.html 求下载!!! 在tc编程中,initgraph(&graphdriver,&graphmode,\&quot;\&quot;); 斜背式商标机印刷彩色标签时是如何制版的,工作原理是怎么样的。新手,想学习。