匹配两个不同图形之间的两个网格页面 [英] Match two trellis pages between two different graphs
问题描述
我希望在同一页面上有一个饼图和一个条形图,并带有网格页面。
它们都有5列作为网格,因此您可以通过向下滚动来查看5个不同的页面。
但是,我想在显示相同的页面两个图的时间相同。例如,假设我在饼图上,向下滚动一页-所以我的饼图在第2页上-我希望我的条形图也自动转到第2页上。
我尝试使用标记,但是尽管它有点链接了两个图形,但是它并不会自动更改网格页面
有人知道如何这样做吗?但是,您可以在文本区域中创建属性控件(我将使用下拉菜单),然后在Limit By表达式中对图表使用相同的文档属性。
略微更多,假设数据表如下:
AB类别
1 2红色
3 4红色
5 6绿色
7 8绿色
9 10蓝色
11 12蓝色
- 在页面上添加文本区域并编辑其内容
- 添加财产控制
- 单击新建以创建文档财产,为其指定字符串类型和名称
类别
- 将设置属性值通过设置为列中的唯一值,然后选择类别列,然后点击确定
- 将文本区域内容 保存到 strong>饼图的属性对话框中,转到数据页面,然后使用表达式查找限制数据。点击编辑
- 将表达式设置为:
[CATEGORY] = $ {category}
(don '不要忘记引号,否则Document Property将不会被视为字符串,并且会出现错误) - 重复步骤6&其他图表为7
I want to have on the same page a pie chart and a bar chart, with trellis pages. They both have 5 columns as trellis, so 5 different pages that you can visualize by scrolling down.
However, I would like to display the same pages at the same time for both graphs. For instance, let's imagine I'm on the pie chart, I scroll down one page - and so my pie chart is on page2 - I want my bar chart to automatically go to page 2 as well
I tried to use markings but although it links a bit the two graphs, it doesn't change the trellis pages automatically
Does anyone know how to do this ?
as @scsimon mentions, there's no native feature (nor API method, AFAIK) for this using a trellis. however, you can create a Property Control (I'd use a dropdown) in a Text Area, then use the same Document Property to your chart in a Limit By expression.
little more detail, assuming a data table like this:
A B CATEGORY
1 2 red
3 4 red
5 6 green
7 8 green
9 10 blue
11 12 blue
- add a Text Area to the page and edit its contents
- add a Property Control
- click New to create a Document Property, give it a type String and a name
category
- change Set property value through to Unique values in column and choose the "category" column and click OK
- save the Text Area contents
- in your Pie Chart's Properties dialog, go to the Data page and look for Limit data using expression. click Edit
- set the expression to:
[CATEGORY] = "${category}"
(don't forget the quotes or the Document Property won't be treated as a string and you'll get an error) - repeat steps 6 & 7 for your other chart
这篇关于匹配两个不同图形之间的两个网格页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!