在轴的定义中使用的可选参数。

vertical: Boolean
一个标志,表示一个轴是垂直的(即轴)或水平。默认为假(横向)。
fixUpper: String
将坐标轴上的最大值与指定的刻度水平对齐。选项是“major大”,“minor小”,“micro微”,或“none没有”。默认为“none无”。
fixLower: String
将坐标轴上的最小值与指定的刻度水平对齐。选项是“major大”,“minor小”,“micro微”,或“none没有”。默认为“none无”。
natural: Boolean
确保刻度线是在自然的数字智商。默认是false。
leftBottom: Boolean
反对:使用位置替代。竖轴的位置;如果为true,经放置在图表的左下角。默认是true;
includeZero: Boolean
坐标轴渲染时包括0,默认是false。
fixed: Boolean
强制所有的坐标轴标签为固定号码。默认为true。
majorLabels: Boolean
在主要的刻度线上绘制标签,默认为true。
minorTicks: Boolean
在坐标轴上绘制较小的刻度,默认是true。
minorLabels: Boolean
当有足够的空间时,在更小的刻度上添加标签。默认是true。
microTicks: Boolean
在坐标轴上绘制微刻度。默认为false。
htmlLabels: Boolean
使用HTML标记(相对于本地矢量图形引擎)绘制标签。默认是true。
min: Number
坐标轴上的最小值。默认是0.
max: Number
坐标轴上的最大值。默认是1.
from: Number
强制图表渲染的数据可见值从这个值开始。默认为0.
to: Number
强制图表渲染的数据可见值到这个值为止,默认为1.
majorTickStep: Number?
The amount to skip before a major tick is drawn. When not set the major ticks step is computed from the data range.

minorTickStep: Number
The amount to skip before a minor tick is drawn. When not set the minor ticks step is computed from the data range.

microTickStep: Number?
The amount to skip before a micro tick is drawn. When not set the micro ticks step is computed from
labels: Object[]?
主要刻度的标签数组,包含对应的数字值,以值的大小排序。
labelFunc: Function?
An optional function to use to compute label text. It takes precedence over the default text when available. The function must be of the following form:

function labelFunc(text, value, precision) {}

`text` is the already pre-formatted text. Pre-formatting is done using `dojo/number`

is available, `Date.toFixed` otherwise.

`value`  is the raw axis value.
`precision` is the requested precision to be applied.
maxLabelSize: Number?

标签的最大大小,以像素为单位。用于可选标签功能
stroke: dojox.gfx.Stroke?
An optional stroke to be used for drawing an axis.
majorTick: Object?
An object containing a dojox.gfx.Stroke, and a length (number) for a major tick.
minorTick: Object?
An object containing a dojox.gfx.Stroke, and a length (number) for a minor tick.
microTick: Object?
An object containing a dojox.gfx.Stroke, and a length (number) for a micro tick.
tick: Object?
An object containing a dojox.gfx.Stroke, and a length (number) for a tick.
font: String
标签字体的可选定义(如在css中使用的字体属性)
fontColor: String|dojo.Color
用于绘制标签的可选颜色
titleGap: Number
轴的标题和轴标签之间的一个可选的差距
titleFont: String?
轴标题的一个可选字体定义
titleFontColor: String
轴标题颜色
titleOrientation: String
轴标题的一个可选方向。"axis"代表面向轴,"away"代表背向轴。如果没有值,将使用"axis"。
enableCache: Boolean
Whether the ticks and labels are cached from one rendering to another. This improves the rendering performance of successive rendering but penalize the first rendering. For labels it is only working with gfx labels not html ones.  Default false.
dropLabels: Boolean?
Whether the axis automatically drops labels at regular interval or not to avoid labels overlapping. This gives better results but require more computations.  You can disable it to save computation time when you know your labels won't overlap. Default is true.
labelSizeChange: Boolean?
Indicates to the axis whether the axis labels are changing their size on zoom. If false this allows to optimize the axis by avoiding recomputing labels maximum size on zoom actions. Default is false.
position: String?
The position of the axis. Values: "leftOrBottom", "center" or "rightOrTop". Default is "leftOrBottom".

this.chart = new Chart(this.chartDivNode,{title:"",
    titleFont:"normal normal bold 15pt Microsoft YaHei" //暂未知 暂未知 加粗 字号 字体
});

this.chart.setTheme(PrimaryColors).addPlot("default", {type: Pie,      //统计图类型:饼图(Columns:柱状图,Bars:水平方向的柱状图)
        font: "Microsoft YaHei",   //图内字体
        fontColor: "black",        //图内字体颜色
        labelOffset: 30,
        labels:false,              //是否显示标注,饼图中的扇形内文字或柱图立柱内文字
        //labelStyle:"columns",        //标注的样式,默认为在圆形之内,columns牵引线
        radius: 90                   //饼图直径
//      gap:5                      //柱图立柱间距
    }).addSeries("Series Pie", data);


.addAxis("x", {//title: "",                    坐标轴标题
    titleFontColor: "black",
    titleOrientation:"away",        //标题正对或反对于轴,axis/away
    max:6,                          //轴刻度最大值
    includeZero: true,
    natural: true,
    //fixLower: "major",
    fixUpper: "micro",
    //maxLabelSize:"20",
    dropLabels:false,              //是否在空间不够时选择性的显示坐标值
    rotation:30,                   //坐标值旋转角度
    //labels:this.xAxisLabels
    labels: [{value: 0, text: ""},{value: 1, text: "易开发"},{value: 2, text: "较易开发"},{value: 3, text: "较难开发"},
        {value: 4, text: "难开发"},{value: 5, text: "不可开发"},{value: 6, text: "其他面积"}]
})


dojo中chart参数相关推荐

  1. 图表中各个参数的应用( AChartEngine XMultipleSeriesRenderer

    图表中各个参数的应用( AChartEngine XMultipleSeriesRenderer 运行demo可以发现,它的所有chart都是可以移动,背景色为黑....不过我们有时候会希望chart ...

  2. Arcgis javascript那些事儿(二十)——dojo中djconfig配置、dojo与requirejs项目冲突

    一.引言 由于项目一部分使用requirejs另一部分地图是用dojo开发(因为arcgis javascript使用的dojo),两个要和到一起,所以要求研究下如何把两者和到一起,花了两天时间看了看 ...

  3. Excel中Chart对象成员表

    因最近在做一个插件,与图表相关,现就把Excel中Chart成员中的方法.属性.事件做成一个表,以便以后进行查询,成员表如下表.注意,本表内只包含其方法.属性.事件的基本说明,如果您需要获取其详细的信 ...

  4. dojo dojo中的事件处理

    JS为DOM添加事件 在原生的环境下,为DOM添加事件处理函数有多种方法: <input type="button" name="btn" value=& ...

  5. Go 学习笔记(65)— Go 中函数参数是传值还是传引用

    Go 语言中,函数参数传递采用是值传递的方式.所谓"值传递",就是将实际参数在内存中的表示逐位拷贝到形式参数中.对于像整型.数组.结构体这类类型,它们的内存表示就是它们自身的数据内 ...

  6. 理解YOLOv2训练过程中输出参数含义

    转载自https://blog.csdn.net/dcrmg/article/details/78565440 原英文地址: https://timebutt.github.io/static/und ...

  7. 如何获取URL中的参数

    获取URL中的参数 1. 使用JS函数获取URL参数 使用示例 2. Angular应用中,从URL中获取参数信息的方法 使用示例 ActivatedRoute属性 1. 使用JS函数获取URL参数 ...

  8. 删除url中某个参数

    这里的url 是指一个网站链接 例如: https://baidu.com?a=1&b=2 下面看一下封装的代码 <!DOCTYPE html> <html><h ...

  9. 爬虫之requests模块中cookies参数的使用

    爬虫之requests模块中cookies参数的使用 上一篇文章在headers参数中携带cookie,也可以使用专门的cookies参数 cookies参数的形式:字典 cookies = {&qu ...

最新文章

  1. Xcode 添加前缀
  2. 第二章 Matlab变量
  3. css3-响应式布局
  4. -bash:/etc/profile Permission Denied
  5. 六款小巧的HTTP Server[C语言] - 贵贵的博客 - 开发|架构|开源|共享
  6. 关于压缩工具 7z(7-zip) 的选项 -w(设置工作目录)的解读
  7. Honeycomb——BFS
  8. python抛硬币代码_求助python掷硬币
  9. java restful返回json_java 调用接口的时候报的错 用的是restful的post方式,请求返回的是json...
  10. Hadoop HA 高可用
  11. mysql中chr_Chr()和chrb()的含义
  12. 强化学习笔记1:Multi-armed Bandits
  13. matplotlib添加行列标题、axes.axis以及axes.xaxis.set_ticklabels相关使用方法
  14. 【2-SAT初学+模板题讲解】POJ3683 Priest John's Busiest Day
  15. centos7搭建DNS服务(use)
  16. iOS三句话实现文本转语音:AVSpeechSynthesizer
  17. jsp+ssh2+mysql实现的CRM客户关系管理系统
  18. PHPExcel导出导入问题”continue” targeting switch is equivalent to “break”.Did you mean to use “continue 2”?
  19. textarea 中的换行、空格; 如何处理
  20. bluedroid key miss问题

热门文章

  1. PHP 缓存 内存,php - 一个大型数组变量的APC内存缓存(22MB)
  2. python windows系统_Windows系统下Python-Windows详细安装教程
  3. 复合选择器-focus选择器(HTML、CSS)
  4. 关于视频监控线缆的常识
  5. 2014腾讯实习生笔试题——define与typedef
  6. 《软件工程(第4版?修订版)》—第2章2.9节本章对研究人员的意义
  7. Servlet--HttpSession接口,HttpSessionContext接口,Cookie类
  8. ue html乱码,UE UTF8 乱码
  9. 安装linux可是c盘文件夹失败,虚拟机安装linux系统,会对物理的磁盘有影响吗?怎样保证安全,谢了!...
  10. 微信小程序点击按钮弹出弹窗_转载 | 广东大学生就业创业微信小程序操作流程详解(一)...