dundas chart legend checkbox
来源:互联网 发布:arm linux gcc官网 编辑:程序博客网 时间:2024/04/29 04:43
原文地址:
http://support.dundas.com/Dashboard3.Legend_Usage.ashx
lements of a legend¶
The figure below shows the main elements of a legend control. By default, the background of a legend is transparent, and no border is visible.Elements of a legend.
Usage¶
Adding a legend and connecting it to a data visualization control is similar for all controls. The chart is used below as an example.Adding a legend to a chart¶
In this example, assume that you have already created a dashboard to display two series (i.e. KPIs) on a line chart:A line chart displaying two KPIs.
Follow these steps to add a legend to the dashboard:
- Go to the toolbox in the Dashboard Designer and expand the Data Controls folder.
- Drag the Legend item from the toolbox and drop it onto the dashboard canvas.
- The legend appears on the canvas with a default appearance (which indicates that it is not hooked up to any data visualization control yet).
Next, connect the chart to the legend:
- Select the chart control on the canvas, then go to its Properties grid.
- Set the chart's Legend property to Legend1. The appearance of the legend on the canvas is automatically updated to reflect the KPIs and other elements displayed in the chart.
- Save, then preview your dashboard.
Chart with corresponding legend.
Checkbox legend items¶
It's easy to set up an interactive legend that displays a checkbox beside each legend item. Users can toggle a checkbox in order to show or hide the corresponding series (e.g. KPI) in the chart:- Drag a legend control from the toolbox to the canvas.
- Set the chart's Legend property to Legend1.
- Set the legend's Item Checkbox Visible property to True.
- Save, then preview your dashboard.
Toggle a legend item checkbox to show or hide the corresponding series (KPI) in the chart:
Legend with checkbox items.
Item Check Changed interaction¶
When you add a legend control to your dashboard, a script is automatically added to the advanced collection property Item Check Changed Interactions:Item Check Changed Interactions
advanced property.
For reference, here is the script that is generated:
Category headings¶
Multiple data visualization controls can be connected to a single legend control on the canvas, and they may display different types of items. For example, two charts can have the Legend property point to the same legend. In this case, some of the items in the legend correspond to one chart, while the remaining items correspond to the second chart. To help group or separate legend items, you can use category headings as follows:- Select the legend control and go to its Properties grid.
- Select a data visualization control and go to its Properties grid.
- Set the Legend Category property to your desired heading text.
- Repeat steps 2 and 3 as needed.
- Save, then preview your dashboard.
The resulting legend displays category headings above each group of legend items with the same category:
Legend with category headings.
Some data visualization controls have separate legend settings for different elements, such as the series or strip lines of a chart. To categorize those elements separately from each other, locate and set their Legend Category.
Note: If there is only one legend category, its header will not be displayed by default. To display the category header when there is only one category, set the legend's Category Visibilityproperty to True. (It is normally Auto.)
Horizontal alignment¶
Use the legend's Item Horizontal Alignment property if you want to change the alignment of the legend items. For example, you can align the legend items to the right, or have them centered.If you want to control the horizontal alignment of a single legend item, you can do this from script by accessing the legend's LegendItems property, which gives you access to all of the legend items (available for scripting only). The example code below centers the first legend item:
0 0
- dundas chart legend checkbox
- dundas legend checkbox
- dundas chart
- Dundas Chart for SharePoint
- Dundas Chart for .NET
- Dundas Chart for .NET
- Dundas Chart Element 说明
- 报表-打印: Dundas Chart使用方法
- Dundas Chart里面透明色
- Dundas Chart for SharePoint技术支持
- Flex 4 Chart Legend
- Flex chart设置Legend样式
- Dundas Chart 5.5.1.1707 for VS2005
- What's New in Dundas Chart 6.1
- Dundas Win Chart 5.5.0的破解...
- Dundas Chart 雷达图,RadarChart简单示例
- Dundas Chart控件的使用总结
- Dundas chart 获取饼图上显示的值
- 黑马程序员_多线程(二)
- Unbuntu下安装Go环境
- 虚拟内存和分页机制和内存映射的不同
- myeclipse和maven的结合
- Java中多态的理解
- dundas chart legend checkbox
- 题目1105:字符串的反码
- nyoj-63-小猴子下落
- 金银价格,
- 不如亲临剧
- 想做一个整合开源安全代码扫描工具的代码安全分析平台
- c#开发WinCE程序之sqlce安装
- Apache Mina的SSL连接API
- 【LeetCode】Evaluate Reverse Polish Notation