帮助:jqPlot图表格式

From Linux Web Expert

jqPlot图表格式
Displays aggregated numerical data as a bar, line, pie, or donut chart
场景、示例、演示
示例: Jqplotchart
图集
更多信息
提供者: Semantic Result Formats/zh-hans
添加版本: 1.8.0
移除版本: 仍支持
需求:
格式名称: jqplotchart
启用?表明安装相应扩展时是否默认启用该结果格式。
作者: James Hong Kong
分类: 图表
组合:
,
目录

结果格式jqplotchart(jqPlot图表),displays aggregated numerical data as a bar, line, pie, or donut chart.

It is using the jqPlot Javascript library and starting with SRF 1.8, jqplotbar and jqplotpie have been merged into one class called jqplotchart which will handle all standard tasks that earlier jqplotbar and jqplotpie have managed. For compatibility reasons the format name jqplotbar and jqplotpie will still be available as aliases but point to format jqplotchart where the bar chart is set as default chart. Other chart layouts are available by using parameter ['layout'] which introduces two additional layouts, a line and a donut chart layout.

The change tried to accommodate compatibility as best as possible but some parameters have been either renamed or altered in their usage pattern to ensure similar behaviour across all layouts and in both classes ( jqplotchart and jqplotseries).

参数

⧼validator-describe-header-parameter⧽ ⧼validator-describe-header-type⧽ ⧼validator-describe-header-default⧽ ⧼validator-describe-header-description⧽
distribution ⧼validator-type-boolean⧽ no 显示值的出现次数,而不是显示所有值。
distributionsort ⧼validator-type-string⧽ none 按出现次数排序值分布。
distributionlimit ⧼validator-type-integer⧽ no 限制值分布内值的数量。
aggregation ⧼validator-type-string⧽ subject 指定合计涉及的内容
min ⧼validator-type-integer⧽ no Y轴上显示的最小值
direction ⧼validator-type-string⧽ vertical 指定图表或图形的方向
charttitle ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 图表的标题
charttext ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 描述性图表文本
numbersaxislabel ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 数字轴的标签
labelaxislabel ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 标签轴的标签
height ⧼validator-type-integer⧽ 400 指定图表或图形的高度(像素)
width ⧼validator-type-string⧽ 100% 指定图表或图形的宽度(像素或百分比)
smoothlines ⧼validator-type-boolean⧽ no 在折线图上应用平滑算法
valueformat ⧼validator-type-string⧽ %d 指定值的格式规则
ticklabels ⧼validator-type-boolean⧽ yes 启用刻度标签显示
highlighter ⧼validator-type-boolean⧽ no 显示数据点突出显示效果
theme ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 选择网格主题
filling ⧼validator-type-boolean⧽ yes 单个填充选项
chartlegend ⧼validator-type-string⧽ none 图表图例位置
datalabels ⧼validator-type-string⧽ none 图表/图形数据标签
colorscheme ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 选择配色方案
chartcolor ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 分配单个图表颜色
class ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ 指定额外的CSS类
charttype ⧼validator-type-string⧽ bar 可用图表类型

参数值

As a list of values cannot be listed yet (see also here), here are some options what parameter values can be chosen, e.g. direction=horizontal.

  • direction: vertical, horizontal
  • charttype: bar, donut, line, pie
  • datalabels: none, value, label, percent

Changes deployed with SRF 1.8

  • Added donut and line chart layout
  • Added parameter [class], allows to add CSS characteristics
  • Added parameter [charttext], a text field for an explanatory chart text
  • Added parameter [smoothlines], applies a smoothing algorithm (only applied to the line chart)
  • Added parameter [theme], a basic theming support for commonly styled attributes (vector, simple)
  • Added parameter [colorscheme], option for an easy selection of pre-defined colours schemes
  • Added parameter [datalabels], displays individual data as ( 'none', 'value', 'label', 'percent')
  • Changed parameter [bardirection] to [direction] to accommodate overall changes

示例

No best practices assigned to this printer.

值分布

The value distribution is supported as well with jqplotchart as it was with jqplotbar and jqplotpie.

备注

Reasons for the re-factoring effort was to ensure that the jqplot printer and its JavaScript plug-ins are used entirely throughout the ResourceLoader, eliminate identical code among jqplotbar and jqplotpie classes, and make use of the same JavaScript for both jqplotseries and jqplotchart class.



Property "Namespace" has a restricted application area and cannot be used as annotation property by a user.Property "Docinfo editor" (as page type) with input value "User:>LittlePaw365" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

本文档页面适用于SMW从1.8.0版到最新版本的所有版本。
      其他语言: En