number甘特图

网友投稿 454 2022-10-21

number甘特图

本文目录一览:

excel如何自动生成设置时间

如何在EXCEL中自动生成当天的日期?

1、首先,excel表,鼠标点击要编辑的单元格;

2、点击菜单栏的公式——“插入”;

3、数对话框内输入“weekday”,点击确定;

4、接下来设置函数参数,我们在serial_number处输入“now()”;

5、在return_type处输入2;

6、点击确定后就能自动返回星期值。

EXCEL考勤表如何让日期对应上面的星期自动生成

没有行号列标,真不好式,你按如下方法

=TEXT(DATE(年单元格,月所在单元格,日所在单元格),"AAA")

再右拉填式

number甘特图

引用年,月的单元格要用混合引用格式,如$A1这样的引用,以保证对某列引用的不变

表格的顶上是一排字母A,B,C,.......这个就是列标

表格的左边是一竖列的数字1,2,3,.......这个就是行号

列标加上行号就是就是单元格的名称,单元格名称也叫做单元格地址,如A列的第三行,为A3单元格,C列的第18行为C18单元格,第五列的第七行就是E7单元格,这样形成了一个个的坐标,标明了每个单元格的位置.

$是绝对引用符号

A1 是相对引用

$A1 绝对引用列,是混合引用

A$1 绝对引用行,是混合引用

$A$1 绝对引用行和列,是绝对引用

$在谁的前面就绝对引用谁

F4是在四种引用间相互转换的快捷键(在编辑栏输入公式时按下F4功能键可进行切换)

A1 在下拉拖动引用时,会变成引用A2,A3,A4...,右拉拖动时引用变成B1,C1,D1....

A$1当你下拉复制时想保证引用的只是A1单元格时,A1就要加$符号,成A$1,这样在下拉时能保证对A列第一行的相对引用(即保持行号在引用时不产生变动)

$A1当你右拉复制时想保证引用的只是A1单元格时,A1就要加$符号,成$A1,这样在右拉时能保证对A列第一行的相对引用(即保持列标在引用时不产生变动)

$A$1当你在下拉和右拉复制时想保证引用的只是A1单元格时,A1就要加$符号,成$A$1,这样在下拉和右拉时能保证对A列第一行的绝对引用(即保持行号列标在引用时不产生变动)

如何利用excel自动生成施工进度计划横道图

横道图甘特图,甘特图是以图方式通过活动列表和时间形象地表任何特定项目的活动顺序与持续时间。基本是一条线条图,横轴表示时间,纵轴表示活动(项目),线条表示在整个期间上计划和实际的活动完成情况。它直观地表明任务计划在什么时候进行,及实际进展与计划要求的对比。管理者由此可便利地弄清一项任务(项目)还剩下哪些工作要做,并可评估工作进度。

用Excel生成甘特图,其实就是条形图的演变,如下举例说明:

1)在Excel中制作计划表,举例说明:

2)选择“插入——图表——条形图”,选择堆积条形图

3)单击“下一步”按钮,然后在数据表中选择“计划”、“开始日期”、“持续天数”三列,会看到以下情景:

4)单击“系列”选项,删除“持续天数”,然后点击“添加”按钮

5)在“名称”中输入“开始日期”,然后点击“值”选项,选择数据表开始日期的相关数据

6)点击“添加”按钮,在名称中输入“持续时间”,然后点击“值”选项,在数据表中选择持续时间数据

7)点击“分类(X)轴标志(T)”,在数据表中选择各项任务,如下:

8)右键点击y坐标轴,选择“坐标轴格式”选项

9)选择“刻度”选项卡,在“分类次序反转”前打勾,点“确定”

10)右键点击图表中的任意蓝色数据条框,并选择“数据系列格式”

11)将边框和内部颜色都设置为“无”,点击确定,得到以下图形

以上就是甘特图即横道图的做法,当然你也可以在必读中搜索横道图或者甘特图,检验中也会提供给你很详细的做法

EXCEL用函数自动生成日期和时间?

1、首先我们需要在excel表上插入一个空白行。

2、完成第一步之后,再输入函数=now()。

3、完成步之后,按回车键后出现当前时间。

4、这时候打印预览中已经能打印出当前时间了。

5、然后保存关闭excel表格后,接着选择重新打开。

6、生成日期则是=TODAY(),按回车键得到结果。

EXCEL中如何自动生成每周一至周五的日期?

1、选中要星期的日期。

2、然后点击,选中单元格设置。

3、在弹出的对话框中日期的格式。

4、然后再选择自定义,出现yyyy年m月d日:@格式。

5、将格式改成yyyy年mm月dd日aaaa,然后点击确认。

6、最终呈现效果图,日期与星期同时显示。

EXCEL表格日期时间自动生成

1、输入个日期,然后让excel自动生成连期其实是excel自带的一种的功能,如果我们是想实现表格中的一列自动生成连续日期的话,简单,我们先在第一行输入一个日期。

2、然后鼠标移动到这个日期的右下角,当鼠标箭头变成黑色的加号时,点击鼠标左键不要放开,然后往下拉,到自己想要连续日期停止的那一行时,再放开鼠标左键,这样excel连续日期就生成了。

3、当然了如果我们想要日期一致的话,在第一个日期的右下角下拉的过程中,要按住键盘左下角的ctrl键,这样自动生成连续的日期就会一致。

4、当然了这个日期是系统默认日期格式,如7月24,如果我们想要改变连续日期格式的话,就需要先对第一个单元格的日期做改变。首先鼠标选中第一个日期,然后鼠标右键选择设置单元格格式。

5、确定后我们的单元格日期就改变了,然后我们再通过下拉的方法设置下方其它单元格的连续日期。excel自动生成连续日期的方法是不是很简单,你也试一试吧。

高分求翻译 机器翻译请绕行~~~

ndividual作业(50%)。

以作为一个起始点你的小组报告,报告(包括任何反馈,你收到的讲师,展示和报告),产生一种报告(50%)和项目计划(50%),确认所有的关键活动、约束和重大的改变您的首选方法。

这份报告(2000 - 2500字)的形式来获得一个管理报告进行协议计划。它并不提供解决方案,为你无法预料的结果,只是你的调查研究如何将计划和执行你的提议的修改。项目计划甘特图是用微软项目。一份微软工程项目的计划是既要求硬拷贝和电子在软盘或光盘中。

注意:如果你的话,你将会超过2,750扣除一年级;如果你超过3000字,你就会自动失败了。

你的报告预计将有一个封面包含赋值的细节,你的名字和学生的数量和单词计数。每一页都是不能数算,每一个问题的回答是在单独的一页上,你是使用适当的哈佛参考。应该有一半的页面概要时开始解释你的建议的报告。

由于个人报告将于2009年4月30日星期五。

关于如何分配问题的答案的个体。

问你的作业生产管理报告概述你将怎样来实现你的改变计划。为了做到这一点,你需要确定你所需要的活动进行移动公司由目前的工作方式,你的新方法时,务必要在你的小组报告。

什么样的细节,你需要确定为每个主要的变化(活动)。

什么是你想要达到的目的和目标(活动)。

谁需要参与(资源使用)。

你认为要花时间去完成()。

什么是对该公司的活动(如事业的财务、文化)。

什么是可能的活动的费用(如果可能的话)量级。

做任何需要做的,然后你就可以开始(连接),前任活动,

什么也不能做之前完成这个活动有关的继任者活动),

先做什么选择(例如又快又轻松的成功/最大的回报/最小风险)。

你现在需要建立你的活动中聚集在一个项目计划,利用接班人/前任约束关系,确定为出发点来确定序列。

为了使这个项目的计划更容易管理,通常是打破了离散单元,称为历史的里程碑。你将需要考虑的关键步骤来成功或里程碑。具有里程碑意义的决定,你的第一个里程碑式的观点将展示你的项目计划在你的报告,在管理将借此机会来总结进度和决定是否继续与否。你可以创建一个单独的计划为每一个里程碑,如果你愿意的话。不要认为你有无限的资源和记住管道将需要不断地进行交易。

在此之上,你需要考虑的一些活动表明成功进入的早期阶段的项目。这将开始创造一种潮流,为工程动力作用。

作业的目的是为了产生一个实际的管理报告,需要把精力集中在你正在去做了,时间,给公司带来效益。

祝你好运!

fusioncharts怎么用

今天统计价格变化规律的时候找到的一个很好的文档,很详细

一、简介

Ø FusionCharts 是InfoSoft Global 公司的一个产品,InfoSoft Global 公司是专业的Flash 图形方案提供商,他们还有几款其他的,基于Flash 技术的产品,都非常的漂亮。

Ø FusionCharts Free 则是FusionCharts 提供的一个免费版本,虽然免费,功能依然强大,图形类型依然丰富。

Ø FusionCharts free 是一个跨平台,跨浏览器的flash 图表组件解决方案,能够被ASP.NET, ASP, PHP, JSP, ColdFusion, Ruby on Rails, 简单HTML 页面甚至PPT 调用。

Ø FusionCharts free新版本中所做的改动:

• 增加了使用jsp 和Ruby on Rails 来集成FusionCharts 的代码和文档。

• FusionCharts DOM 更加容易地把图表加载到页面上。

• 修改了.Net 的使用代码和文档。

• 增加了新的PHP API ,并修复了一些BUG。

• 修改了FusionCharts.js ,以便可以支持双引号。

• 增加了在FusionCharts 使用UTF-8 编码的示例。

二、部分效果展示

三、报表图形对应的swf文件分类

图形类型

文件名

Single Series Charts(单系列图形)

Column 3D

FCF_Column3D.swf

Column 2D

FCF_Column2D.swf

Line 2D

FCF_Line.swf

Area 2D

FCF_Area2D.swf

Bar 2D

FCF_Bar2D.swf

Pie 2D

FCF_Pie2D.swf

Pie 3D

FCF_Pie3D.swf

Doughnut 2D

FCF_Doughnut2D.swf

Multi-series Charts(多系列图形)

Multi-series Column 2D

FCF_MSColumn2D.swf

Multi-series Column 3D

FCF_MSColumn3D.swf

Multi-series Line 2D

FCF_MSLine.swf

Multi-series Bar 2D

FCF_MSBar2D.swf

Multi-series Area 2D

FCF_MSArea2D.swf

Stacked Charts(堆栈图)

Stacked Column 3D

FCF_StackedColumn3D.swf

Stacked Column 2D

FCF_StackedColumn2D.swf

Stacked Bar 2D

FCF_StackedBar2D.swf

Stacked Area 2D

FCF_StackedArea2D.swf

Combination Charts(组合图)

Multi-series Column 3D + Line - Dual Y Axis

FCF_MSColumn2DLineDY.swf

Multi-series Column 3D + Line - Dual Y Axis

FCF_MSColumn3DLineDY.swf

Financial Charts(财经图,即蜡烛图)

Candlestick Chart

FCF_Candlestick.swf

Funnel Chart(漏斗图)

Funnel Chart

FCF_Funnel.swf

Gantt Chart(甘特图)

Gantt Chart

FCF_Gantt.swf

四、安装使用

1. 在web项目目录下新建一个文件夹( 如FusionCharts),并把所有的SWF 文件都拷贝到这个文件夹里。

2. 在页面导入FusionCharts.js 文件,如:

script type="text/javascript" src="FusionCharts.js"/script

3. js加载数据生成报表(有两种方法)

方法一:xml文件引用法

(1)定义一个固定格式的xml文件(以Data.xml为例)

Date.xml的内容如下:

graph caption='每月销售额柱形图' xAxisName='月份' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'

set name='一月' value='462' color='AFD8F8' /

set name='二月' value='857' color='F6BD0F' /

set name='三月' value='671' color='8BBA00' /

set name='四月' value='494' color='FF8E46' /

set name='五月' value='761' color='008E8E' /

set name='六月' value='960' color='D64646' /

set name='七月' value='629' color='8E468E' /

set name='八月' value='622' color='588526' /

set name='九月' value='376' color='B3AA00' /

set name='十月' value='494' color='008ED6' /

set name='十一月' value='761' color='9D080D' /

set name='十二月' value='960' color='A186BE' /

/graph 

(2) js加载方法,代码如下:

div id=”chartdiv1”/div

script type="text/javascript"

var myChart2 = new FusionCharts("../FusionCharts/FCF_Column3D.swf","myChartId2", "600","300");

 myChart2.setDataURL("Data.xml");

 myChart2.render("chartdiv1"); 

/script 

方法二:字符串加载法

(1) 定义一个有固定格式的字符串,即可以将上述xml文件组合成字符串

var dataXml = “graph caption='每月销售额柱形图' xAxisName='月份' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'set name='一月' value='462' color='AFD8F8' /set name='二月' value='857' color='F6BD0F' /set name='三月' value='671' color='8BBA00' /set name='四月' value='494' color='FF8E46' /set name='五月' value='761' color='008E8E' /set name='六月' value='960' color='D64646' /set name='七月' value='629' color='8E468E' /set name='八月' value='622' color='588526' /set name='九月' value='376' color='B3AA00' /set name='十月' value='494' color='008ED6' /set name='十一月' value='761' color='9D080D' /set name='十二月' value='960' color='A186BE' //graph”;

(2)js加载方法,代码如下:

div id=”chartdiv1”/div

script type="text/javascript"

var myChart2 = new FusionCharts("../FusionCharts/FCF_Column3D.swf","myChartId2", "600","300");

 myChart2.setDataURL(dataXml);

 myChart2.render("chartdiv1"); 

/script

解析:操作步骤:

1建立对象:

用四个参数建立了一个FusionCharts对象,

var myChart = new FusionCharts("../FusionCharts/FCF_Column3D.swf", "myChartId", "600", "500"); 

第一个参数是SWF文件的地址。

第二个是图形的id。这个id可以随便叫什么,但是要注意,当一个页面里有多个图形的时候,这个id一定要是唯一的。

第三个参数是图形的宽。

第四个参数是图形的高。

2 加载数据:

第一种加载方法需要设置数据文件的地址。如:

myChart.setDataURL("Data.xml");

第二种加载方法需要设置对应的字符串。如:

myChart2.setDataURL(dataXml); //dataXml为字符串

3 把图形渲染在指定的地方。

myChart.render("chartdiv");

"chartdiv"就是前面的DIV的id,这就表示把图形render到"chartdiv",即Flash图形就出现在这个id为"chartdiv1"的DIV里。

四、引起flash图像不能显示的可能原因

(一)如果没有在页面上看到图形,可能是下面的原因之一:

1. SWF没有放到正确的文件夹。

2. 在html文件里,SWF的路径设置不正确。

3. 没有安装Flash Player。

4. 没有启用浏览器Flash播放选项。

(二)如果你得到了一个“Error in Loading Data”的消息,可能是:

1. xml文件没放到正确的文件夹。

2. xml的文件名不正确。比如,你可能不小心把它命名Data.xml.txt。

(三)如果你得到了一个“Invalid XML Data”的消息,可能是:

1. xml文件里的内容有错误。

五、特殊字符

在FCF里,一些特殊的编码都需要经过编码。如:

“€”欧元符号 ——— 需要用“%80”替换

“£”英镑符号 ——— 需要用“%A3”替换

“¥”人名币符号—— 需要用“%A5”替换

“¢”分符号 ————需要用“%A2”替换

“%”百分号 ———— 需要用“%25”替换

“”连字符 ———— 需要用“”替换

“”大于号 ———— 需要用“”替换

“'”单引号 ———— 需要用“'”替换

如果要显示双引号,直接使用就可以了,前提是属性值是用单引号括起来的。如果属性值是用双引号括起来的,要显示单引号,也可以直接使用,而不必用“'”来替换它。

五、属性参数大全

FusionCharts的XML标签属性有以下四种数据类型:

* Boolean - 布尔类型,只能为1或者0。例如:graph showNames=’1’

* Number - 数字类型,只能为数字。例如:graph yAxisMaxValue=’200’

* String - 字符串类型,只能为字符串。例如:graph caption=’My Chart’

* HexColorCode - 六进制颜色代码,前边没有‘#’。例如:graph bgColor=’FFFFDD’

1. 功能特性

animation …………………………[bool]是否动画显示数据,默认为1(True)

palette …………………………… [number]使用默认的调色板(1-5)

showNames ………………………[bool]是否显示横向坐标轴(x轴)标签名称

showLables ………………………[bool]是否显示标签,默认为1(True)显示(set中有lable属性时)

rotateNames ………………………[bool]是否旋转显示标签(name),默认为0(False):横向显示

rotateLabels ………………………[bool]设置x轴上的lable显示方式,默认为0横向显示

showValues ………………………[bool]是否在图表显示对应的数据值,默认为1(True)

yAxisMinValue ………………… [number]指定纵轴(y轴)最小值,数字

yAxisMaxValue ………………… [number] 指定纵轴(y轴)最小值,数字

showLimits ………………………[bool]是否显示图表限值(y轴最大、最小值),默认为1(True)

labelDisplay ………………………[string ]标签的呈现方式[“WRAP”,”STAGGER”,”ROTATE”,

“NONE”](超长屏蔽、折行、倾斜、不显示)

staggerLines …………………… [number]多少个字符后折行(labelDisplay=’stagger’)

rotateValues ………………………[bool]是否滚动显示值 (showValues=’1’)

showYAxisValues …………………[bool]是否显示y轴数据

yAxisValuesStep ………………… [number]y轴标记的显示间隔

adjustDiv …………………………[bool]自动调整divlines

clickURL …………………………[string]图表的焦点链接地址

defaultAnimation …………………[bool]是否开启默认动画

connectNullData …………………[bool]是否呈现空值(?)

slantLabels ……………………… [bool]

showDivLineValues ………………[bool]

rotateYAxisName …………………[bool]

yAxisNameWidth ……………… [number] (In Pixels)

labelStep ……………………… [number] (1 or above)

setAdaptiveYMin

2. 图表标题和轴名称

caption ………………………… [string]图表主标题

subCaption ………………………[string] 图表副标题

xAxisName …………………… [string]横向坐标轴(x轴)名称

yAxisName ……………………[string] 纵向坐标轴(y轴)名称

3. 图表和画布的样式

bgColor ……………………[color]图表背景色,可以使用逗号分割多个颜色值 6位16进制颜色值

bgRatio ………………………[number]多个颜色值所占的比率,[0-100]

bgAngle ………………………[number]角度,[0-360]

bgSWF ……………………… [string] 设置一个外部的Flash 为flash的背景(须在同一个域下)

bgSWFAlpha …………………[number] 背景flash透明度,[0-100]

bgAlpha……………………… [number]设置图表背景透明度,[0-100]

shadowAlpha …………………[number]投影透明度,[0-100]

showLegend ………………… [bool]是否显示系列名,默认为1(True)

canvasBgColor …………………[color]画布背景色,6位16进制颜色值

canvasBgAlpha …………………[number]画布透明度,[0-100] 0为不透明

canvasBorderColor …………… [color]画布边框颜色,6位16进制颜色值

canvasBorderThickness …………[number]画布边框厚度,[0-100]

canvasBaseColor ……………… [color]设置图表基部的颜色,6位16进制颜色值

canvasBaseDepth ……………… [number]设置图表基部的高度

canvasBgDepth …………………[number]设置图表背景的深度

showCanvasBg …………………[bool]设置是否显示图表背景

showBorder …………………… [bool]画布透明度,默认为1显示

showCanvasBase ………………[bool]设置是否显示图表基部

pieFillAlpha ……………………[number]各色块填充颜色的深度

pieSliceDepth …………………[bool]设置各个色块间隔线的宽度(不能与pieBorderAlpha同用)

useRoundEdges ……………… [bool]设置图表图形边角是否是为圆角,默认为0不是

chartLeftMargin ……………… [number]设置图表左边距,像素

chartRightMargin ………………[number]设置图表右边距,像素

chartTopMargin ……………… [number]设置图表上边距,像素

chartBottomMargin ……………[number]设置图表下边距,像素

canvasBgRatio …………………[ ?]

canvasBgAngle …………………[number]

borderColor ……………………[color]

苹果笔记本制作甘特图

OpenProj

OpenProj是一个款免费的、可替代MSProject的桌面项目管理工具,其使用方式应于Project相似,可以轻松上手。它拥有与MS Project同等的功能,一个友好的用户界面并且能够打开现有的MSProject文件。OpenProj做的较为出色的是它是跨平台的,Windows、 Linux、Unix和Mac下都能使用。

GanttProject

GanntProject是一款以Java编写的开源甘特图绘制软件,提供了基本的项目管理能力,如创建工作分解、确定主要里程碑、持续时间、相依性、进度、备注以及资源分配等等。GanntProject可以导入导出CSV和Microsoft Project文件。它可以在Windows、Linux、Mac OS及其它操作系统上执行。

谁帮我翻译一下啊。。。非常感谢了。准备考研。。。没时间翻译。。哪位好心人帮我翻译一下啊。。

Time is like the blink, sand table simulation is over two weeks. Sand table simulation result on this course is my university course is one of the most interested in courses. I learned a lot from this course curriculum of high school less than other things. I mainly to the course learning made a summary from a few aspects.

First, the learning process

The sand table simulation we made two projects. The teacher will we were divided into six groups, each group of five members, respectively, by the project manager, procurement manager, operation manager, production manager and finance manager. The simulation of I worked as a financial manager. Financial managers throughout the organization responsible for managing the money flow in the process of construction and turnover.

At the beginning of the class we did a small project, the project by the teacher in the first month, together with our project pre-planning is teacher prepared beforehand, mainly in order to make us familiar with the rules of the construction process and simulating, and the form in the process of construction. This month we do feel very relaxed, more is to understand the rules of the simulation and process. But two months later is our group plan to complete alone again. So a little difficult to do. But after all the planning group discussion or successfully completed the task. The first project of the construction and the construction process is simple, less so they also do more smoothly. Each group of different level at a profit.

Project manager to lead the rest of the century bridge all finished. We advance planning before construction the construction plan, construction and according to the gantt chart every month that the budget early material purchases, calculate the loan amount needed for every month. And work out the final profit.

Second, the study of the deficiencies and shortcomings

Throughout the process of planning our scheme where there have been some mistake or lack of. For example: first, we have mechanical application of template and the labor shift comes into play, lease time and play time of these two concepts is confusion cause to test software in some of the errors in the input data, make forecast plan and actual deviation appeared. Second, since there is no good self-study reading instruction, in the first scheme is used in the emergency hiring plan of the labor shift, the specification is not allowed in the extensive use of emergency recruitment team, so we first planning double digits. Third is the comparison of the template into the appearance and use of the chaos, labor shift into play sometimes forget to pay into the appearance, and labor team frequently into play cause we need a lot of appearance, this is also our first plan eventually profit less.

Immediately after analysis of these problems, find out the reasons, we changed the previous set of planning scheme. The package compared to the first set of solutions: first is strictly in accordance with the rules set by the rules set by the software fill in template, machinery, labor shift time and play time. Followed by, reduced the labor shift into the number of appearances, so there is no need to urgent recruitment, save a lot of labor team into the cost. New planning of the package we eventually won the 980000 profit.

Third, comments

The study of the sand table, let I harvest a lot. I really think that, the company has a smart CEO, budget, finance director, familiar with the operation of the business manager, production manager skilled production rules; Accurate material purchasing manager, it is very important, everyone only do their own things, company can normal operation.

1, the unity cooperation. A team unity, collective idea, only the strength to make together, can have the chance to be the best. To stay calm at the same time, also want to keep a clear head, ready to hand in the work, can't from random condition, difficult time everyone to help each other, in perspective of others shoes, mutual understanding, tolerance.

2, a clear division of responsibilities. Every man for his own work to is responsible earnestly. Maybe you a little bit careless will lead to significant losses, are more likely to lead to one false move may lose the game. The real construction is no chance of again, lost is lost, so be careful each step of the way.

3, well planned. Must understand the rules before planning, accomplish know fairly well, not to blindly, everything should have a certain plan, every step carefully, otherwise it may cause problems throughout the enterprise.

4, positive attitude. In trouble maintain an optimistic mentality, let own work attitude more positive use efficiency, and some prospects didn't imagine so bad, don't force yourself a never know how good he is.

fusioncharts是什么技术

)

Candlestick Chart

FCF_Candlestick.swf

Funnel Chart(漏斗图)

Funnel Chart

FCF_Funnel.swf

Gantt Chart(甘特图)

Gantt Chart

FCF_Gantt.swf

四、安装使用

1. 在web项目目录下新建一个文件夹( 如FusionCharts),并把所有的SWF 文件都拷贝到这个文件夹里。

2. 在页面导入FusionCharts.js 文件,如:3. js加载数据生成报表(有两种方法)

方法一:xml文件引用法

(1)定义一个固定格式的xml文件(以Data.xml为例)

Date.xml的内容如下:

 

(2) js加载方法,代码如下: 

方法二:字符串加载法

(1) 定义一个有固定格式的字符串,即可以将上述xml文件组合成字符串

var dataXml = “”;

(2)js加载方法,代码如下:解析:操作步骤:

1建立对象:

用四个参数建立了一个FusionCharts对象,

var myChart = new FusionCharts("../FusionCharts/FCF_Column3D.swf", "myChartId", "600", "500"); 

第一个参数是SWF文件的地址。

第二个是图形的id。这个id可以随便叫什么,但是要注意,当一个页面里有多个图形的时候,这个id一定要是唯一的。

第三个参数是图形的宽。

第四个参数是图形的高。

2 加载数据:

第一种加载方法需要设置数据文件的地址。如:

myChart.setDataURL("Data.xml");

第二种加载方法需要设置对应的字符串。如:

myChart2.setDataURL(dataXml); //dataXml为字符串

3 把图形渲染在指定的地方。

myChart.render("chartdiv");

"chartdiv"就是前面的DIV的id,这就表示把图形render到"chartdiv",即Flash图形就出现在这个id为"chartdiv1"的DIV里。

四、引起flash图像不能显示的可能原因

(一)如果没有在页面上看到图形,可能是下面的原因之一:

1. SWF没有放到正确的文件夹。

2. 在html文件里,SWF的路径设置不正确。

3. 没有安装Flash Player。

4. 没有启用浏览器Flash播放选项。

(二)如果你得到了一个“Error in Loading Data”的消息,可能是:

1. xml文件没放到正确的文件夹。

2. xml的文件名不正确。比如,你可能不小心把它命名Data.xml.txt。

(三)如果你得到了一个“Invalid XML Data”的消息,可能是:

1. xml文件里的内容有错误。

五、特殊字符

在FCF里,一些特殊的编码都需要经过编码。如:

“€”欧元符号 ——— 需要用“?”替换

“£”英镑符号 ——— 需要用“?”替换

“¥”人名币符号—— 需要用“?”替换

“¢”分符号 ————需要用“?”替换

“?百分号 ———— 需要用“%”替换

“”连字符 ———— 需要用“”替换

“”大于号 ———— 需要用“”替换

“'”单引号 ———— 需要用“'”替换

如果要显示双引号,直接使用就可以了,前提是属性值是用单引号括起来的。如果属性值是用双引号括起来的,要显示单引号,也可以直接使用,而不必用“'”来替换它。

五、属性参数大全

FusionCharts的XML标签属性有以下四种数据类型:

* Boolean - 布尔类型,只能为1或者0。例如:* Number - 数字类型,只能为数字。例如:* String - 字符串类型,只能为字符串。例如:* HexColorCode - 六进制颜色代码,前边没有‘#’。例如:

1. 功能特性

animation …………………………[bool]是否动画显示数据,默认为1(True)

palette …………………………… [number]使用默认的调色板(1-5)

showNames ………………………[bool]是否显示横向坐标轴(x轴)标签名称

showLables ………………………[bool]是否显示标签,默认为1(True)显示(set中有lable属性时)

rotateNames ………………………[bool]是否旋转显示标签(name),默认为0(False):横向显示

rotateLabels ………………………[bool]设置x轴上的lable显示方式,默认为0横向显示

showValues ………………………[bool]是否在图表显示对应的数据值,默认为1(True)

yAxisMinValue ………………… [number]指定纵轴(y轴)最小值,数字

yAxisMaxValue ………………… [number] 指定纵轴(y轴)最小值,数字

showLimits ………………………[bool]是否显示图表限值(y轴最大、最小值),默认为1(True)

labelDisplay ………………………[string ]标签的呈现方式[“WRAP”,”STAGGER”,”ROTATE”,

“NONE”](超长屏蔽、折行、倾斜、不显示)

staggerLines …………………… [number]多少个字符后折行(labelDisplay=’stagger’)

rotateValues ………………………[bool]是否滚动显示值 (showValues=’1’)

showYAxisValues …………………[bool]是否显示y轴数据

yAxisValuesStep ………………… [number]y轴标记的显示间隔

adjustDiv …………………………[bool]自动调整divlines

clickURL …………………………[string]图表的焦点链接地址

defaultAnimation …………………[bool]是否开启默认动画

connectNullData …………………[bool]是否呈现空值(?)

slantLabels ……………………… [bool]

showDivLineValues ………………[bool]

rotateYAxisName …………………[bool]

yAxisNameWidth ……………… [number] (In Pixels)

labelStep ……………………… [number] (1 or above)

setAdaptiveYMin

2. 图表标题和轴名称

caption ………………………… [string]图表主标题

subCaption ………………………[string] 图表副标题

xAxisName …………………… [string]横向坐标轴(x轴)名称

yAxisName ……………………[string] 纵向坐标轴(y轴)名称

3. 图表和画布的样式

bgColor ……………………[color]图表背景色,可以使用逗号分割多个颜色值 6位16进制颜色值

bgRatio ………………………[number]多个颜色值所占的比率,[0-100]

bgAngle ………………………[number]角度,[0-360]

bgSWF ……………………… [string] 设置一个外部的Flash 为flash的背景(须在同一个域下)

bgSWFAlpha …………………[number] 背景flash透明度,[0-100]

bgAlpha……………………… [number]设置图表背景透明度,[0-100]

shadowAlpha …………………[number]投影透明度,[0-100]

showLegend ………………… [bool]是否显示系列名,默认为1(True)

canvasBgColor …………………[color]画布背景色,6位16进制颜色值

canvasBgAlpha …………………[number]画布透明度,[0-100] 0为不透明

canvasBorderColor …………… [color]画布边框颜色,6位16进制颜色值

canvasBorderThickness …………[number]画布边框厚度,[0-100]

canvasBaseColor ……………… [color]设置图表基部的颜色,6位16进制颜色值

canvasBaseDepth ……………… [number]设置图表基部的高度

canvasBgDepth …………………[number]设置图表背景的深度

showCanvasBg …………………[bool]设置是否显示图表背景

showBorder …………………… [bool]画布透明度,默认为1显示

showCanvasBase ………………[bool]设置是否显示图表基部

pieFillAlpha ……………………[number]各色块填充颜色的深度

pieSliceDepth …………………[bool]设置各个色块间隔线的宽度(不能与pieBorderAlpha同用)

useRoundEdges ……………… [bool]设置图表图形边角是否是为圆角,默认为0不是

chartLeftMargin ……………… [number]设置图表左边距,像素

chartRightMargin ………………[number]设置图表右边距,像素

chartTopMargin ……………… [number]设置图表上边距,像素

chartBottomMargin ……………[number]设置图表下边距,像素

canvasBgRatio …………………[ ?]

canvasBgAngle …………………[number]

borderColor ……………………[color]

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:如何解决Excel计算结果中的“#不适用”错误值?
下一篇:如何在excel中并排查看两个工作表
相关文章